zopflipng-bin

Zopflipng wrapper that makes it seamlessly available as a local dependency on OS X, Linux

npm install zopflipng-bin
16 downloads in the last day
44 downloads in the last week
187 downloads in the last month

node-zopflipng-bin

About

zopflipng (part of zopfli) Node.js wrapper that optimize PNG images.

Zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible compressor. This compressor takes more time (~100x slower), but compresses around 5% better than zlib and better than any other zlib-compatible compressor we have found.

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install -g zopflipng-bin

Usage with Node.js

var execFile = require('child_process').execFile;
var zopflipngPath = require('zopflipng-bin').path;

execFile(zopflipngPath, ['-m', '--lossy_8bit', 'dest.png'], function() {
  console.log('Image minified');
});

License

This is licensed under BSD. zopfli is licensed under Apache License, Version 2.0.

npm loves you