Skip to content
zopflipng bin-wrapper that makes it seamlessly available as a local dependency
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Update to v1.0.2 tag. (#17) Nov 7, 2018
vendor Update Windows binary (rebuild). Dec 9, 2018
.editorconfig Meta tweaks Dec 27, 2017
.gitattributes ES2015ify and require Node.js 4 Mar 24, 2017
.gitignore Meta tweaks Dec 27, 2017
.npmrc Meta tweaks Dec 27, 2017
.travis.yml Add Node.js 11 to the test matrix (#20) Jan 20, 2019
cli.js Require Node.js 6 and update all dependencies. (#14) Nov 6, 2018
index.js ES2015ify and require Node.js 4 Mar 24, 2017
license Meta tweaks Dec 27, 2017
package.json 5.0.0 Dec 9, 2018

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.


$ npm install zopflipng-bin


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

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


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


MIT © Imagemin

You can’t perform that action at this time.