Easy shortcut for creating a gif from a screen recording. I use it a lot for demonstrating UI work and attaching it to a Github PR.
Based on this Gist: https://gist.github.com/dergachev/4627207
brew install ffmpeg
brew install --cask xquartz #dependency for gifsicle, only required for moutain-lion and above
brew install gifsicle
Run ./install.sh
Add an alias:
Bash - in your ~./bash_profile
file: alias screengif='screengif.sh'
ZSH - in your ~/.zshrc
file: alias screengif='screengif.sh'
You simply pass in a movie file: screengif cats.mov
and it will create a gif with the same name in the same directory.
brew install fswatch
Add an alias:
Bash - in your ~./bash_profile
file: bash /usr/local/bin/watch.sh /Users/sam.hill/Documents/screengif &
ZSH - in your ~/.zshrc
file: bash /usr/local/bin/watch.sh /Users/sam.hill/Documents/screengif &