Skip to content

Instantly share code, notes, and snippets.

View keepitcomplicated's full-sized avatar

Sveinn Davidsson keepitcomplicated

View GitHub Profile
@keepitcomplicated
keepitcomplicated / gist:11096042
Created April 19, 2014 20:12
Series of images to animated GIF with ImageMagick
convert -size 300x400 -delay 0 -loop 0 *.jpg animation.gif
@keepitcomplicated
keepitcomplicated / gist:10731533
Last active September 9, 2018 23:38
Convert a PNG sprite to animated GIF with ImageMagick (python script)
mkdir ./gif; for f in *.png; do y=${f%.png}; convert -dispose 3 -delay 0 -deconstruct -loop 0 ./$f -crop 40x40 +repage -depth 4 ./gif/$y.gif; echo "Converting $y to GIF"; echo "—~—~—~—~—~—~—~—~—~—~—~–"; done