Skip to content
jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Require Node.js 6 (#17) Nov 17, 2018
test
vendor Update jpeg-recompress binaries to v2.1.1 Apr 21, 2015
.editorconfig
.gitattributes ES2015ify and require Node.js 4 (#14) Mar 31, 2017
.gitignore Varios tweaks Sep 5, 2014
.npmrc Require Node.js 6 (#17) Nov 17, 2018
.travis.yml Use Travis to test on Windows (#20) Jan 12, 2019
cli.js Require Node.js 6 (#17) Nov 17, 2018
index.js
license ES2015ify and require Node.js 4 (#14) Mar 31, 2017
package.json 4.0.0 Nov 17, 2018
readme.md Use Travis to test on Windows (#20) Jan 12, 2019

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

You can’t perform that action at this time.