Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gifsicle

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gifsicle

gifsicle wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
539K
increased by9.46%
Maintainers
2
Weekly downloads
 
Created

What is gifsicle?

The gifsicle npm package is a Node.js wrapper for the Gifsicle command-line tool, which is used for manipulating GIF images. It allows you to optimize, resize, and edit GIFs programmatically.

What are gifsicle's main functionalities?

Optimize GIF

This feature allows you to optimize a GIF file to reduce its size. The code sample demonstrates how to use the gifsicle package to optimize an input GIF and save the optimized version as output.gif.

const gifsicle = require('gifsicle');
const execFile = require('child_process').execFile;

execFile(gifsicle, ['--optimize', '--output', 'output.gif', 'input.gif'], (err) => {
  if (err) throw err;
  console.log('GIF optimized');
});

Resize GIF

This feature allows you to resize a GIF to specified dimensions. The code sample demonstrates how to resize an input GIF to 200x200 pixels and save the resized version as output.gif.

const gifsicle = require('gifsicle');
const execFile = require('child_process').execFile;

execFile(gifsicle, ['--resize', '200x200', '--output', 'output.gif', 'input.gif'], (err) => {
  if (err) throw err;
  console.log('GIF resized');
});

Extract Frames

This feature allows you to extract individual frames from a GIF. The code sample demonstrates how to extract frames from an input GIF, which will be saved as separate files.

const gifsicle = require('gifsicle');
const execFile = require('child_process').execFile;

execFile(gifsicle, ['--explode', 'input.gif'], (err) => {
  if (err) throw err;
  console.log('Frames extracted');
});

Other packages similar to gifsicle

Keywords

FAQs

Package last updated on 26 Aug 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc