Not able to create animated gif file

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ranjitsaurav
Posts: 1
Joined: 2013-10-29T03:14:02-07:00
Authentication code: 6789

Not able to create animated gif file

Post 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
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Not able to create animated gif file

Post 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.
Post Reply