I have been asked quite a few times what I use to make animated gifs in my blog posts and tweets. I have been asked so much that I made it into a pinned post in my G+ profile. And now I got tired of copy-pasting all those commands so I made a script.
The script accepts two parameters:
-f
- Required, the input file to be converted
-o
- Optional, path and file where the output will be dumped. If not provided, the output will be named the same as the input, but with a .gif
extension
Script uses sips, ffmpeg (brew install ffmpeg
), and gifsicle (brew install gifsicle
). I am no master, in fact, I Googled for each command in this script. So use this at your own risk.
Actual commands inspired by this post. Thanks to @gservat for helping when I was stuck.