kraxnet / optipng-bin

optipng bin-wrapper that makes it seamlessly available as a local dependency

Home Page:http://optipng.sourceforge.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

optipng-bin Build Status

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.

Install

$ npm install --save optipng-bin

Usage

var execFile = require('child_process').execFile;
var optipng = require('optipng-bin');

execFile(optipng, ['-out', 'output.png', 'input.png'], function (err) {
	console.log('Image minified!');
});

CLI

$ npm install --global optipng-bin
$ optipng --help

License

MIT © imagemin

About

optipng bin-wrapper that makes it seamlessly available as a local dependency

http://optipng.sourceforge.net

License:MIT License


Languages

Language:JavaScript 100.0%