graphicsmagick-rs
GraphicsMagick binding for Rust.
Requirement
Require graphicsmagick
, libgraphicsmagick
, clang
and libclang
.
In Deepin/Ubuntu/Debian, you can install these by:
Before build, please check the GraphicsMagickWand-config
is executable,
or specify the environment variable GRAPHICS_MAGICK_WAND_CONFIG
correctly.
Support
-
Support and tested GraphicsMagick version:
>= 1.3.20
. -
If you want to use higher version functions, you should specify features in
Cargo.toml
like:= ["v1_3_36"]
-
GraphicsMagick
supports OpenMP if you are compiling with OpenMP-enabledcc
, you can set the environment variableOMP_NUM_THREADS
to limit the number of threads or setOMP_DISPLAY_ENV=TRUE
to display the OpenMP info when running the application.Read http://www.graphicsmagick.org/OpenMP.html for details.
Example
Simple resize example:
use Context;
use ;
use PathBuf;
License
MIT.