blob: 2595a2352f192445e51b4bb39f97349dcf08cde2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
if [ -f animation.lcd ] ;then
rm animation.lcd
fi
echo -n "Frames to convert: "
ls *.png |wc -l
for filename in *.png
do
echo -n "create mono gif $filename.gif from $filename:"
convert -monochrome $filename $filename.gif && echo "ok"
echo -n "converting to lcd file... "
../../../r0ket/tools/image/img2lcd.pl $filename.gif && echo "ok"
echo -n "adding ${filename%\.*}.lcd to animation "
cat ${filename%\.*}.lcd >> animation.lcd && echo "ok"
done
echo "done"
|