Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option for animated gif capturing (Mac only via wacaw) #108
Use -a 3 or --animate=3 option in your
Some extra points to note;
I've tested with a few of the plugins and it appears to work OK! Also I updated the README.md with instructions on how to enable and configure.
Any issues let me know. I'm happy to answer any questions, or improve the PR in any way. I'll probably blog about my adventures with this here sometime soon.
Ps.. I also submitted this forking PR allowing users to fork the capturing process (which is much slower on animated gif generation)
Ps.. The obligatory dramatic animated gif example from this commit
This is pretty amazing.
Some things I can think of offhand that would help get this ready:
Thanks for all the hard work on this already! (and nice blog post)
Using wacaw and ffmpeg (and convert) it is possible to generate and annotate a short animated gif for your lolcommit. Use -a 3 or --animate=3 option in your .git/hooks/post-commit call to capture and animate (for 3 second gif) The longer the time, the larger the animated gif file-size. Some extra points to note; * currently mac only * if -a 0 (or not present) lolcommits will operate as normal * defaults to a 320x240 sized animated gif * wacaw is open source here; http://webcam-tools.sourceforge.net I've tested with a few of the plugins and it appears to work OK! Also updated README.md with instructions on how to enable and configure
Ok, I think I've been able to address all these points now. I rebased with latest master and pushed, all tests are green
I've refactored some of the path changing code in
Also added a test that actually does an animated capture and checks the tmp folders and files are removed OK.
Any issues, questions etc. let me know.