This is an old revision of the document!
Animated Nick
Specification:
* Each frame is a .lcd file.
* All frames are concatenated and saved as “nick.lcd”.
* Each frame is shown with a fixed frame rate of 0.5s.
Notes on lcd files:
* Pixels are not quadratic, but rectangular with a 1.209 ratio (each pixel is 1.209 times higher than its width).
* This means a square should be 77 pixel wide and 64 pixel high (for example).
Automatic conversion from animated gif
The “convert” program from imagemagick is the tool to use.
$ convert INPUTFILE.gif -background white +adjoin -resize 79×68 -monochrome -alpha Off -resize '96×68!' -depth 1 -negate out.gif
For some reason these must then be flattened (does not work on one line) before converting to LCD format:
$ for f in out-*.gif; convert $f -depth 1 -flatten f$f; ../r0ket/tools/imagec/img2lcd.pl f$f; done
Now we can collect them:
cat `ls fout-*.lcd |sort -n -t- -k2 ` > nick.lcd
Copy nick.lcd to your r0ket badge. Have fun!