SuperSampling and AI
Posted: 2010-12-10T14:09:16-07:00
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.
From the command line this works:
What would the C MagickWand code be? Currently I'm doing something like this
Thanks in advance.
From the command line this works:
Code: Select all
convert -density 244 -resize 25% input.ai output.png
Code: Select all
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");