I have a question about zooming gif with MagickWand API.
I have a gif.
I want to do resize on its first frame.
I want the output is jpeg.
So I do these:
Then the program core dumped.
Code: Select all
MagickReadImageBlob() MagickResetIterator() MagickResizeImage() MagickSetImageFormat("jpeg") MagickGetImagesBlob()
Then I read some code and I noticed that MagickResizeImage() will call ReplaceImageInList(). So the output image will still have multiple frames. But the first frame's magick is JPEG and others are still GIF. And the adjoin flag is true. So it will core?
Temporarily I use MagickGetImageBlob() instead of MagickGetImagesBlob() to work around this. Is there any other way to achieve this? Pls help me out. Thx.