Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid Imagemagick's convert overlay of frames in a gif

I have a bunch of files labelled 1.png and so on. I'm using the following command line to produce a gif animation:

convert -delay 20 *.png animation.gif

But the frames get superposed sequentially. I did not expect this behavior, what might be wrong?

Thanks

like image 402
Alejandro D. Somoza Avatar asked Oct 07 '14 15:10

Alejandro D. Somoza


1 Answers

Option -dispose previous:

convert -dispose previous -delay 20 *.png animation.gif
like image 170
Stéphane Laurent Avatar answered Nov 15 '22 16:11

Stéphane Laurent