How to resize/resample image using MagickCore
Posted: 2009-02-06T14:14:54-07:00
Hi,
I want to use the MagickCore to do the exact the same as the command-line "Convert -resize 64x64 input.jpg output.jpg" which wil scale the image accordingly rather than fix the dimensions as in ResizeImage, SacleImage, etc. for given the column and row size.
When using command-line "Convert" for a given image with geometry of 2492x1944+0+0, after resize with 64x64, it produced geometry with 64x48.
How would I do that?
Thanks for any help.
Best,
--Wo
I want to use the MagickCore to do the exact the same as the command-line "Convert -resize 64x64 input.jpg output.jpg" which wil scale the image accordingly rather than fix the dimensions as in ResizeImage, SacleImage, etc. for given the column and row size.
When using command-line "Convert" for a given image with geometry of 2492x1944+0+0, after resize with 64x64, it produced geometry with 64x48.
How would I do that?
Thanks for any help.
Best,
--Wo