gif-video

0.0.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i gif-video

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • hughsk