gif-to-png

2.0.5 • Public • Published

Convert GIF frames to PNG

This package allows you to directly save frames of given GIF image to your given directory as PNG image.

Getting Started

Use following command to install this package.

npm i gif-to-png --save

Let's look at the quick snippet

let generateFrames = require('gif-to-png')
let gifURL = 'https://media3.giphy.com/media/11MKLWSDvMVSp2/giphy.gif'
let outputPath = './where/you/want/frames/to/be/saved'
generateFrames(gifURL, outputPath)
.then(urls => {
  // "urls" is an array containing the full path of each frame.
  console.log('Frames generated: ', urls)
})
.catch(error => {
  console.log("Uh oh, Something went wrong. \n", error)
})

What next in the package?

Custom image names, all format support (since currently it only supports png). -- Make me know what else you want at shubham.prajapat@himanshusofttech.com --

Authors

Package Sidebar

Install

npm i gif-to-png

Weekly Downloads

60

Version

2.0.5

License

MIT

Unpacked Size

2.68 kB

Total Files

3

Last publish

Collaborators

  • shubham-pixelnx