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.
rdrew
1440706ce3
|
6 years ago | |
---|---|---|
.. | ||
lib | 6 years ago | |
vendor | 6 years ago | |
cli.js | 6 years ago | |
index.js | 6 years ago | |
license | 6 years ago | |
package.json | 6 years ago | |
readme.md | 6 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