Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created November 28, 2015 12:23
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 zeffii/04a1caaf6147be351251 to your computer and use it in GitHub Desktop.
Save zeffii/04a1caaf6147be351251 to your computer and use it in GitHub Desktop.
#!/bin/bash
# usage:
# bash gifbatch.sh /home/zeffii/Videos/braindead/
# gifsicle -O --colors 256 animated.gif > opt_animated_256.gif
mypath=$1
pushd $mypath
pwd
convert -delay 10 -loop 0 *png animated.gif &&
gifsicle -O animated.gif > opt_animated.gif
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment