Skip to content

Instantly share code, notes, and snippets.

@roban
Created April 21, 2012 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roban/2438552 to your computer and use it in GitHub Desktop.
Save roban/2438552 to your computer and use it in GitHub Desktop.
make animated GIF from a series of JPG files
# `convert` is part of Image Magick http://www.imagemagick.org
# The command below scales the images to 500 pixels (in some dimension),
# imposes a delay of 60/100ths of a second between frames, and loops indefinitely.
# The "-layers optimize" option reduces the final file size by optimizing the GIF frames, with a difference threshold
# controlled by the "-fuzz" parameter.
convert -fuzz 2% -layers optimize -scale 500 -delay 60 -loop 0 -verbose IMG_*.JPG animation.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment