gify
July 27, 2018 ยท View on GitHub
Turn videos into gifs.

Installation
$ npm install gify
Requires ffmpeg and graphicsmagick:
brew install ffmpeg graphicsmagick
Example
Without options:
gify('out.mp4', 'out.gif', function(err){
if (err) throw err;
});
With options:
var opts = {
width: 300
};
gify('out.mp4', 'out.gif', opts, function(err){
if (err) throw err;
});
Options
widthmax width [500]heightmax height [none]delaybetween frames [auto]rateframe rate [10]startstart position in seconds or hh:mm:ss[.xxx] [0]durationlength of video to convert in seconds or hh:mm:ss[.xxx] [auto]
License
MIT