gif-resizer

a package for resizing gifs while keeping aspect ratio


Keywords
gif-resizer, gif, resize, gifsicle
License
ISC
Install
npm install gif-resizer@3.0.0

Documentation

gif-resizer

a simple package to resize gifs while maintaining aspect ratio

Install

$ npm install gif-resizer

Usage

const gifResize = require("gif-resizer");
const fs = require("fs");

// you can also use a buffer
gifResize("tenor.gif", { width: 400, height: 390 }).then(file => {
    fs.writeFileSync("success.gif", file)
});

Options

  • width: number
  • height: number
  • stretch: boolean
  • colors: number
  • scale: number