Created
July 10, 2014 21:26
-
-
Save felixr/d18609f5878766939f28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create animated gif by rotating a GIF | |
ORIG=$1 | |
i=100 | |
for deg in `seq 0 30 330 | xargs`; do | |
i=`expr $i + 1` | |
convert ${ORIG} \( +clone -background none -rotate $deg \) -gravity center -compose Src -composite loading_$i.gif | |
done | |
gifsicle --delay=15 --loop loading_*.gif > loading-anim.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment