You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| lib | 7 years ago | |
| vendor | 7 years ago | |
| cli.js | 7 years ago | |
| index.js | 7 years ago | |
| license | 7 years ago | |
| package.json | 7 years ago | |
| readme.md | 7 years ago | |
readme.md
optipng-bin 
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