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 ~ 1.3.36. -
There are some version flag in the documentation, like
gm_v_1_3_26, meaning that yourGraphicsMagickversion must be greater than or equal to1.3.26to used this method.
-
GraphicsMagicksupports OpenMP if you are compiling with OpenMP-enabledcc, you can set the environment variableOMP_NUM_THREADSto limit the number of threads or setOMP_DISPLAY_ENV=TRUEto 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.