gif-video

Convert a GIF image into an HTML5-ready video for considerably better file sizes

npm install gif-video
7 downloads in the last week
9 downloads in the last month

gif-video Flattr this!experimental

Convert a GIF image into an HTML5-ready video for considerably better file sizes. Much like gfycat, except you can process and host it yourself.

Usage

gif-video

require('gif-video')([options])

Returns a transform stream which takes a GIF buffer as input, and spits out a video file on the other side.

var createStream = require('gif-video')
var fs = require('fs')

fs.createReadStream('input.gif')
  .pipe(createStream({ height: 200 }))
  .pipe(fs.createWriteStream('output.webm'))

options will be passed onto the stopmotion module, with the exception of inputCodec which is forced to be gif.

License

MIT. See LICENSE.md for details.

npm loves you