📺 Convert mov/mp4 to high-quality animated gifs
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

DEPRECATED! Gifski is all you need.

gif

I'm using ffmpeg and imagemagick manually to generate animated gifs from QuickTime mov/mp4. I created this simple cli to make my life easier. I use this tool to take snapshots of interactive UIs and attach to pull requests.

The default options are optimised for quality and file size. The only options exposed are --resize and --delay.

Protip: Do not record your whole screen and try to generate a gif. This probably won't end well.

Dependencies

brew update
brew install ffmpeg
brew install imagemagick

Install

npm install -g movtogif-cli

Usage

For more options check out the help movtogif -h.

movtogif video.mov video.gif

Optimise GIF

If you're not happy with the file size you can use gifsicle to reduce it. However it may compromise the image quality.

brew install gifsicle
gifsicle -O3 video.gif -o video-optimized.gif