/ lolcommits Public
Add option for animated gif capturing (Mac only via wacaw) #108
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge.
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-commitcall to capture and animate (for 3 second gif) OR set the
Some extra points to note;
LOLCOMMITS_ANIMATEis not set (or set at 0) - lolcommits will operate as normal
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