backoffice/node_modules/optipng-bin
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
lib first commit 2020-02-06 10:09:39 +00:00
vendor first commit 2020-02-06 10:09:39 +00:00
cli.js first commit 2020-02-06 10:09:39 +00:00
index.js first commit 2020-02-06 10:09:39 +00:00
license first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00
readme.md first commit 2020-02-06 10:09:39 +00:00

readme.md

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

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

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

CLI

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

License

MIT © imagemin