resize of Gif file using magick++
Posted: 2009-12-06T20:24:51-07:00
Hi, magick
I met a problem when resize animated gif files. I read the image from a blob then try to resize it into a smaller one.The code are as follows
image.read(blob,"GIF");
image.zoom("100x100");
image.write("a.gif");
But the generated a.gif is not an animated image file. If I remove the code "image.zoom("100x100")", the generated a.gif is an animated file. I don't know how to resize the gif file into a smaller animated one, could you give me some help? Thanks very much!
I met a problem when resize animated gif files. I read the image from a blob then try to resize it into a smaller one.The code are as follows
image.read(blob,"GIF");
image.zoom("100x100");
image.write("a.gif");
But the generated a.gif is not an animated image file. If I remove the code "image.zoom("100x100")", the generated a.gif is an animated file. I don't know how to resize the gif file into a smaller animated one, could you give me some help? Thanks very much!