Skip to content

Instantly share code, notes, and snippets.

@santhoshtr
Created November 3, 2014 15:51
Show Gist options
  • Save santhoshtr/5f20766639136182f708 to your computer and use it in GitHub Desktop.
Save santhoshtr/5f20766639136182f708 to your computer and use it in GitHub Desktop.
Create GIF animation from the rendering of a text through the history of development
#!/bin/bash
git rev-list --reverse master > revlist.txt
git checkout -f master
rm -rf images
rm Chilanka.ttf
mkdir images
COUNTER=0
while read commit
do
git checkout -f "$commit"
make compile
mv Kaippada.ttf Chilanka.ttf
hb-view Chilanka.ttf --text-file=Malayalam.txt --output-file=images/$COUNTER.png
let COUNTER=COUNTER+1
done < revlist.txt
git checkout master
convert -delay 200 -loop 0 images/*.png chilanka.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment