Time Machine is a neat way to visualize the development of a web projected tracked with git.
Requires phantomJS and ruby.
All of the arguments are required.
$ ruby time_machine.rb --help
Options:
--dir, -d <s>: Git Directory
--file, -f <s>: File
--save-dir, -s <s>: Directory where to save images
--help, -h: Show this message
If the project git directory is at ~/Development/Kitty
and the file you're interested in is index.html
(in the root dir of the project directory), then the command will be:
ruby time_machine.rb --dir ~/Development/Kitty --file index.html --save-dir ~/Desktop/Pictures/
Pictures will be saved at ~/Desktop/Pictures/
.
Time Machine does not yet support making a video, but to do so just use ffmpeg to do so.
ffmpeg -f image2 -i %d.png -r 25 -sameq video.mpg