Created
August 14, 2015 07:56
-
-
Save anonymous/a7b301ca1b356543695b 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 | |
# 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