gifsicle-neo
v8.0.2
Published
gifsicle wrapper that makes it seamlessly available as a local dependency
Maintainers
Readme
gifsicle-neo
Fork notice: This is a maintained fork of the original
gifsicle-binpackage. The original package is no longer actively updated. This fork includes several improvements and modernizations.
gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more.
You probably want imagemin-gifsicle or psimage instead.
Changes and features
- TypeScript rewrite: Full TypeScript support with type definitions.
- ES modules: Native ES module exports (
.jsfiles withtype: "module"). - Modern Node.js: Requires Node.js 20 or higher.
- Improved installation: Better error handling and permission fixes.
- Platform binaries: Pre‑compiled binaries for macOS, Linux (x86/x64), FreeBSD, and Windows.
- Updated dependencies: Uses
execafor reliable subprocess execution. - Build script: Includes
bin-buildfor compiling from source if needed. - Linting/formatting: Integrated
oxlintandoxfmtfor code quality.
Install
$ npm install gifsicle-neoUsage
import { execFile } from "node:child_process";
import { gifsicle } from "gifsicle-neo";
import { resolve } from "node:path";
import { cwd } from "node:process";
const __dirname = cwd();
const file = resolve(__dirname, "images", "input.gif");
const out = resolve(__dirname, "images", "output.gif");
execFile(gifsicle, [file, "-o", out], (error) => {
if (error) throw error;
console.log("Image minified!");
});CLI
$ npm install --global gifsicle-neo$ gifsicle --helpLicense
MIT License. Copyright (c) 2026 pasmurno by llcawc. Made with ❤️ to beautiful architecture.
