Optimize image buffer


Keywords
optimize, compress, image, img, jpeg, jpg, png, gif, svg
License
MIT
Install
npm install imgo@3.2.0

Documentation

imgo

A tool for optimizing PNG, JPEG, GIF, SVG images.

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install [-g] imgo

Usage

CLI

$ imgo filename.png
$ imgo dirname

in Node.js

const IMGO = require('imgo');
new IMGO('filename.jpg')
  .optimize()
  .then(data => {
    console.log('before size:', data.before.size);
    console.log('after size:', data.after.size);
  });

License

MIT: http://1000ch.mit-license.org