advpng-bin

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

npm install advpng-bin
19 downloads in the last day
55 downloads in the last week
199 downloads in the last month

node-advpng-bin

About

advpng node.js wrapper that optimize PNG images.

The main purpose of this utility is to recompress png files to get the smallest possible size. Please note that this utility is not able to read a generic file. It's granted to be able to read only the files generated by the AdvanceMAME emulator.

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install -g advpng-bin

Usage with Node.js

var execFile = require('child_process').execFile;
var advpngPath = require('advpng-bin').path;

execFile(advpngPath, ['--recompress', '--shrink-extra', 'dest.png'], function() {
  console.log('Image minified');
});

License

This is licensed under BSD. advpng is licensed under GNU General Public License (GPL).

npm loves you