jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test Require Node.js 6 (#17) Nov 17, 2018
vendor
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
cli.js
index.js
license
package.json
readme.md

readme.md

jpeg-recompress-bin Build Status

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-bin

Usage

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');
});

CLI

$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help

License

MIT © Imagemin