@cjser/jpeg-recompress-bin
v7.0.0-cjser.2
Published
jpeg-recompress wrapper that makes it seamlessly available as a local dependency
Maintainers
Readme
jpeg-recompress-bin 
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.
Install
$ npm install --save jpeg-recompress-binUsage
import {execFile} from 'node:child_process';
import jpegRecompress from 'jpeg-recompress-bin';
execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], error => {
console.log('Image minified');
});CLI
$ npm install --global jpeg-recompress-bin$ jpeg-recompress --helpLicense
MIT © Imagemin
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/imagemin/jpeg-recompress-bin
