zopflipng bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
Latest commit 9661829 Mar 31, 2017 @1000ch 1000ch committed on GitHub Various tweaks (#8)
Use ava instead of mocha, meta tweaks.

readme.md

zopflipng-bin Build Status

zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible compressor that takes more time (~100x slower), but compresses around 5% better than zlib and better than any other zlib-compatible compressor

You probably want imagemin-zopfli instead.

Install

$ npm install --save zopflipng-bin

Usage

const {execFile} = require('child_process');
const zopflipng = require('zopflipng-bin');

execFile(zopflipng, ['-m', '--lossy_8bit', 'input.png', 'outout.png'], () => {
	console.log('Image minified!');
});

CLI

$ npm install --global zopflipng-bin
$ zopflipng --help

License

MIT © Imagemin