Skip to content

Instantly share code, notes, and snippets.

@pastleo
Last active August 29, 2015 14:04
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 pastleo/c63044a4c89c13953e96 to your computer and use it in GitHub Desktop.
Save pastleo/c63044a4c89c13953e96 to your computer and use it in GitHub Desktop.
Create GIF using commandline

Create GIF using commandline

There is a super image converter for commandline: ImageMagick,it has a lot of image convertion tools. You can install it using brew,just brew install ImageMagick (if you are using mac with brew) ^_^

  1. First, I bet you must resize your imgs,here is the example
mogrify -resize 640x480 *.jpg
  1. then you can convert them into a gif:
convert -delay 20 -loop 0 *.jpg myimage.gif

Source ImageMagick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment