|
|
5 년 전 | |
|---|---|---|
| .. | ||
| lib | 5 년 전 | |
| cli.js | 5 년 전 | |
| index.js | 5 년 전 | |
| license | 5 년 전 | |
| package.json | 5 년 전 | |
| readme.md | 5 년 전 | |
zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible compressor that takes more time (~100x slower), but compresses around 5% better than zlib and better than any other zlib-compatible compressor
You probably want imagemin-zopfli instead.
$ npm install zopflipng-bin
const {execFile} = require('child_process');
const zopflipng = require('zopflipng-bin');
execFile(zopflipng, ['-m', '--lossy_8bit', 'input.png', 'outout.png'], () => {
console.log('Image minified!');
});
$ npm install --global zopflipng-bin
$ zopflipng --help
MIT © Imagemin