Page 1 of 1

animate gif with transparency

Posted: 2008-12-09T12:02:20-07:00
by nephish
Hey there all,

i am using convert to animate a gif like this.
convert -delay 50 img1.gif img2.gif img3.gif -loop 0 rotate.gif

the individual images are a band that should rotate in the animation, the problem is, that when im2.gif shows up, img1.gif is still there. So the images display not like a motion, but images being stacked on top of each other.
how can i fix this?

the images all have transparency

thanks

Re: animate gif with transparency

Posted: 2008-12-09T17:06:18-07:00
by anthony
Use the right disposall setting. Default is to just overlay!

Say background or previous. either should work for this.

PS: use -layers Optimize before saving to to get IM to reduce the final animation size via frame optimizations, and better disposals.


For more information of dispose methods and techniques see
IM Examples, Animation Basics.

Re: animate gif with transparency

Posted: 2008-12-09T22:28:39-07:00
by nephish
Thank you very much, -dispose background worked like a champ .