New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option for animated gif capturing (Mac only via wacaw) #108
Add option for animated gif capturing (Mac only via wacaw) #108
Conversation
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) |
Sorry for the delay, will aim to address these issues this weekend at some point. |
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. |
This looks fantastic. |
Add option for animated gif capturing (Mac only via wacaw)
Woohoo! Thanks for merging this in! |
Hmm, the TravisCI build may be failing now since the check for |
@matthutchinson yeah, if you look in the |
Using wacaw and ffmpeg (and ImageMagick's 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) OR set theLOLCOMMITS_ANIMATE
environment variableSome extra points to note;
LOLCOMMITS_ANIMATE
is not set (or set at 0) - lolcommits will operate as normalI'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.
Thanks,
Matt
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📺 😄