|
преди 4 години | |
---|---|---|
.. | ||
lib | преди 4 години | |
cli.js | преди 4 години | |
index.js | преди 4 години | |
license | преди 4 години | |
package.json | преди 4 години | |
readme.md | преди 4 години |
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