Last active
March 28, 2018 10:58
-
-
Save ykarikos/e62f756ce6e1846c571a07de541a0dfd to your computer and use it in GitHub Desktop.
Create spinning and rotating gif with GraphicsMagick
This file contains hidden or 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
mkdir spin | |
for angle in `seq 360 30 690`; do gm convert original.jpg -background "#FFFFFF" -rotate $angle -crop 512x512+0+0 spin/$angle.png; done | |
cd spin | |
gm convert *.png -loop 0 -delay 20 spinningfoobar.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment