Skip to content

Instantly share code, notes, and snippets.

Created August 14, 2015 07:56
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 anonymous/a7b301ca1b356543695b to your computer and use it in GitHub Desktop.
Save anonymous/a7b301ca1b356543695b to your computer and use it in GitHub Desktop.
#!/bin/bash
# do the conversion
convert $1 -coalesce temp.gif
convert -resize 130x130 temp.gif temp_new.gif
rm temp.gif
convert temp_new.gif temp.png
rm temp_new.gif
convert *.png -background white -alpha remove white.png
rm temp*.png
for i in *.png ; do perl img2lcd.pl "$i" ; done
export delay=200
export frames=""
for i in `ls *.lcd | sort -V`; do export frames="$frames $i $delay" ; done
perl lcd2ani.pl -v out.an1 $frames
rm *.lcd
rm white*.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment