Page 1 of 1

Not able to create animated gif file

Posted: 2013-10-29T03:15:52-07:00
by ranjitsaurav
Dear support Team,

I have one issue that is bugging me out. I tried to create a gif file from number of png file. All the png files are in one folder (1.png, 2.png , 3.png up to 100.png). From these png files i was trying to create the gif file.
This is what I tried

convert -dispose none -delay 1 -loop 0 *.png test.gif

The gif file was created but it contained still picture of one of the png file only. I was not able to create the animation from the png file . I would like to know if I am doing it right or there is another way of creating the animated gif file.

Thank you for the help.

Regards,
Saurav Ranjit

Re: Not able to create animated gif file

Posted: 2013-10-29T07:35:53-07:00
by glennrp
Delay is measured in 1/100ths of a second, so your total animation time
with "-delay 1" is 1 second for 100 frames.

Does "identify file.gif" tell you that there is only one frame, or does it
tell you there are actually 100 frames displayed in one second?

Try "-delay 10" or "-delay 100" instead.

"*.png" will not necessarily put the frames in the order you expect.
Try "?.png ??.png ???.png" instead of "*.png" to ensure putting the 1-digit
names first, then the 2-digit names, etc.