The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
I have searched this topic a bunch and I have tried everything suggested, but still for some reason the image does not do a crop with a center gravity. Can anyone shed some light on how to fix this problem?
Use this:
MagickSetImageGravity(magick_wand, CenterGravity);
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Maybe there is something else I am doing wrong? Can someone help me figure this out? Or maybe I just have to manually offset the crop in X and Y so that it is in the center?
It looks like you'll have to compute the offset yourself.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
That'll do it.
Which version of IM are you using on which OS?
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.