Page 1 of 1

convert destroys animated gif

Posted: 2009-11-05T03:50:04-07:00
by double
Hello,

If we convert an animated gif, the result is destroyed.

Souce file:
http://www.doppelbauer.name/test.gif

Code: Select all

convert test.gif -channel rgba -alpha on -trim +repage result.gif
Thank you very much
Markus

Re: convert destroys animated gif

Posted: 2009-11-05T12:25:07-07:00
by fmw42
i am no expert on animations, but each frame of your gif is likely a different size. you will need to use -coalesce to separate frames to the same size, process them and then optimize them back into an animated gif. try

convert test.gif -coalesce -trim +repage -layers optimizeframe test2.gif

you may get an error message, but the image seems to work. IM 6.5.7-4 Q16

search the forum for similar recent posts. that was discussed not too long ago.

see
http://www.imagemagick.org/Usage/anim_basics/
http://www.imagemagick.org/Usage/anim_opt/
http://www.imagemagick.org/Usage/anim_mods/

Re: convert destroys animated gif

Posted: 2009-11-05T13:29:21-07:00
by double
Juhu!
Thank you very much it works!
Marcus