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'm having a slight issue going from the command line or PHP to the C MagickWand API. I cannot get super sampling to work. Its probably in part due to my lack of fully grasping the concepts.
MagickSetResolution(_wand, 244, 244);
MagickReadImage(_wand, "ai:/path/to/input.ai");
MagickAdaptiveResizeImage(_wand, _size.width, _size.height); // I feel like this is where I'm doing things wrong
MagickWriteImage(_wand, "/path/to/output.png");
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.
The code essentially does what I'm doing already. I should have pointed out that _size is a struct containing the images original size.
The problem I am having is that the resulting image at the size I want ends up all jagged where as running from the command line using convert I end up with a nice smooth supersampled image.
The convert command doesn't use adaptive resize for the -resize option. It uses ResizeImage which you can access through MagickResizeImage.
Try this statement:
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.