0.0.2 • Published 10 years ago
gif-video v0.0.2
gif-video
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
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.