Kevin 29b9a0c50c clean && clean html base | 4 years ago | |
---|---|---|
.. | ||
lib | 4 years ago | |
cli.js | 4 years ago | |
index.js | 4 years ago | |
license | 4 years ago | |
package.json | 4 years ago | |
readme.md | 4 years ago |
Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized
You probably want imagemin-jpeg-recompress
instead.
$ npm install --save jpeg-recompress-bin
const {execFile} = require('child_process');
const jpegRecompress = require('jpeg-recompress-bin');
execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], err => {
console.log('Image minified');
});
$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help
MIT © Imagemin