Created
November 3, 2014 15:51
-
-
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
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 | |
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