Socket
Socket
Sign inDemoInstall

gif-to-png

Package Overview
Dependencies
75
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gif-to-png

A cool light weight package to convert gif images to png in just one line of code. Enjoy! Waiting for your suggestions.


Version published
Weekly downloads
75
decreased by-42.75%
Maintainers
1
Install size
6.07 MB
Created
Weekly downloads
 

Readme

Source

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

  • Shubham Prajapat - Initial work - Let's Chat

Keywords

FAQs

Last updated on 11 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc