gif-to-png
v2.0.5
Published
A cool light weight package to convert gif images to png in just one line of code. Enjoy! Waiting for your suggestions.
Maintainers
Readme
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 --saveLet'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 [email protected] --
Authors
- Shubham Prajapat - Initial work - Let's Chat
