Skip to content

Instantly share code, notes, and snippets.

@sputn1ck
Created August 13, 2015 12:20
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 sputn1ck/656aec5054a37a5e5b91 to your computer and use it in GitHub Desktop.
Save sputn1ck/656aec5054a37a5e5b91 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p image
rm image/*
convert $1.gif -coalesce image/out%05d.gif
str="$1.an1"
cd image
rm `ls -t | awk 'NR % 2 == 0'`
cd ..
for i in $( ls ./image); do
convert image/$i -depth 16 -resize 128x128\! image/$i.small
./img2lcd.pl image/$i.small
str="$str image/$i.lcd 1"
done
./lcd2ani.pl $str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment