render-gif
Render a gif and provide frames to draw.
Last updated 6 years ago by richienb .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install render-gif 
SYNC missed versions from official npm registry.

render-gif Travis CI Build Status

Render a gif and provide frames to draw.

NPM Badge

Install

npm install render-gif

Usage

const fs = require("fs");
const logUpdate = require("log-update");
const renderGif = require("render-gif");
 
renderGif(fs.readFileSync("unicorn.gif"), logUpdate);

API

renderGif(data, callback, options?)

data

Type: array-like

The gif data. Can be anything array-like such as a Buffer, Array or Uint8Array.

callback

Type: (data: ArrayLike) => void

The callback to provide each rendered frame to.

options

Type: object

maximumFrameRate

Type: number
Default: Infinity

The maximum framerate to render the gif at.

Return value

isPlaying

Type: boolean
Default: true

Whether the animation should be rendered and provided to the callback.

Current Tags

  • 2.0.4                                ...           latest (6 years ago)

5 Versions

  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |