package
Render a gif and provide frames to draw.
npm install render-gifGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Render a gif and provide frames to draw.
npm install render-gifconst fs = require("fs");
const logUpdate = require("log-update");
const renderGif = require("render-gif");
renderGif(fs.readFileSync("unicorn.gif"), logUpdate);Type: array-like
The gif data. Can be anything array-like such as a Buffer, Array or Uint8Array.
Type: (data: ArrayLike) => void
The callback to provide each rendered frame to.
Type: object
Type: number
Default: Infinity
The maximum framerate to render the gif at.
Type: boolean
Default: true
Whether the animation should be rendered and provided to the callback.
Estimated unpacked size across 55 packages.
24.2 MB
Includes dependencies.
4 direct · 3 outdated