Created
April 6, 2012 16:35
-
-
Save paultag/2321188 to your computer and use it in GitHub Desktop.
Create a .GIF of all versions of a .PNG from Git
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
mkdir ~/os | |
git log openstatesmap.png | grep commit | awk '{print $2}' | tac > ~/allfifty.rev | |
I=0; while read foo; do git reset $foo --hard; cp openstatesmap.png ~/os/$I.png; let I=$I+1; done < ~/allfifty.rev | |
convert -dispose previous -delay 20 -loop 0 `ls *.png | sort -n` openstates.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment