npm.io
0.2.0 • Published 13 years agoCLI

gify

Licence
MIT
Version
0.2.0
Deps
5
Vulns
0
Weekly
0
Stars
300

gify

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

  • width max width [500]
  • height max height [none]
  • delay between frames [auto]
  • rate frame rate [10]
  • start start position in seconds or hhss[.xxx] [0]
  • duration length of video to convert in seconds or hhss[.xxx] [auto]

License

MIT

Keywords