Page 1 of 1

resize animate gif with coalesce

Posted: 2010-05-24T11:55:01-07:00
by gigimon
Hello

When I'm use convert via shell,
convert -coalesce -resize 100x50 box.gif box2.gif

animated GIF with transparence resize normal, but if I'm use via MagickWand (in Python) this code:

from PythonMagickWand import *
MagickWandGenesis()
wand = NewMagickWand()
MagickReadImage(wand, 'd:/box.gif')
MagickSetLastIterator(wand)
length = MagickGetIteratorIndex(wand)
MagickSetFirstIterator(wand)
for i in range(0, length+1):
MagickSetIteratorIndex(wand,i)
MagickAdaptiveResizeImage(wand, 87, 56)
MagickCoalesceImages(wand)
MagickWriteImages(wand, 'd:/boxtest1.gif', 1)


I'm get bad frames (many black and white dots).
How true use coalesce in wand?