I note with the convert command that passing a size hint dramatically speeds up the resize:
I would like to pass this in to my MagickCore code, but I do not see how. This is my code:convert -define jpeg:size=800x800 -resize=800x800 balloon.jpg b.jpg
Code: Select all
ImageInfo* original_image_info = AcquireImageInfo();
ExceptionInfo* ei = AcquireExceptionInfo();
Image* original_image = BlobToImage(original_image_info, ptr, sz, ei);
SyncImageSettings(original_image_info, original_image); // todo: needed?
Image* resized_image = AdaptiveResizeImage(original_image, width, height, ei);
Thanks in advance.