Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a series of small PNG files using Blender and I was wondering if there was a tool (preferably in the repos.) that would convert them to an animated GIF.

One extra stipulation: the tool needs to also be able to set the background color of the GIF to a specified color since the PNG files have an alpha channel and I don't want the GIF to be transparent.

share|improve this question
up vote 20 down vote accepted

Yes, using imagemagicks convert tool:

convert   -delay 20   -loop 0   frame*.png   animated.gif

This will take all of the source frames and will make them into one animated GIF image. The -delay 20 argument will cause a 20 hundredths of a second delay between each frame, and the -loop 0 will cause the gif to loop over and over again.

As for setting the background color for the gif, that can be done with the background and flatten flags:

convert -delay 20 -loop 0 frame*.png -background white -flatten animated.gif
share|improve this answer
Thanks! That answers both questions. – Nathan Osman May 19 '11 at 1:21

According to this StackOverflow Question you can use ImageMagick or a Python script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.