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 this command. Now in that command the resize parameter is in percentage so I tried to write same thing using C and below is my code.
The problem with C code is when MagickExtendImage executed the image will be cropped. Because the resize in percentage and pixel are not same. So is there any function or any option in MagickWand C API to resize image percentage wise?
I got the solution. I just need to call MagickScaleImage(wand, width, height); function exactly after MagickResizeImage(wand, newWidth, newHeight, 0); function.
I have done the same thing but when I call MagickExtentImage(wand,1941,5663,0,0); . the image will be cropped. And If I place the the MagickScaleImage, I would get the expected result.