Socket
Socket
Sign inDemoInstall

gifsicle

Package Overview
Dependencies
Maintainers
5
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


Version published
Weekly downloads
523K
decreased by-3.36%
Maintainers
5
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 19 Sep 2014

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