jpegtran bin-wrapper that makes it seamlessly available as a local dependency
Latest commit 8add290 Jul 13, 2016 @shinnn shinnn 3.1.0
Failed to load latest commit information.
lib Update source to v1.5.0 Jul 13, 2016
test Update source to v1.5.0 Jul 13, 2016
vendor Update Windows binaries to v1.5.0 Jul 13, 2016
.editorconfig meta tweaks Apr 8, 2016
.gitattributes init Nov 21, 2012
.gitignore Various tweaks Sep 5, 2014
.travis.yml meta tweaks Jun 14, 2016
cli.js Fix lint error Jul 13, 2016
index.js Export it directly Apr 20, 2015
license Various tweaks Apr 20, 2015
package.json 3.1.0 Jul 13, 2016 use Travis badge Dec 31, 2015

jpegtran-bin Build Status

libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.


$ npm install --save jpegtran-bin


var execFile = require('child_process').execFile;
var jpegtran = require('jpegtran-bin');

execFile(jpegtran, ['-outfile', 'output.jpg', 'input.jpg'], function (err) {
    console.log('Image minified!');


$ npm install --global jpegtran-bin
$ jpegtran --help


MIT © imagemin