2.0.5 • Published 5 years ago

gif-to-png v2.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago