|
|
vor 5 Jahren | |
|---|---|---|
| .. | ||
| lib | vor 5 Jahren | |
| cli.js | vor 5 Jahren | |
| index.js | vor 5 Jahren | |
| license | vor 5 Jahren | |
| package.json | vor 5 Jahren | |
| readme.md | vor 5 Jahren | |
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