Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jpegtran bin-wrapper that makes it seamlessly available as a local dependency
JavaScript

3.0.4

latest commit 83947e72a6
@kevva kevva authored
Failed to load latest commit information.
lib Added links to binwrapper
test Update source to v1.4.1
vendor Added x64 jpegtran binary
.editorconfig Various tweaks
.gitattributes init
.gitignore Various tweaks
.jshintrc Various tweaks
.travis.yml Update .travis.yml
cli.js Export it directly
index.js Export it directly
license Various tweaks
package.json 3.0.4
readme.md Export it directly

readme.md

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.

Install

$ npm install --save jpegtran-bin

Usage

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

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

CLI

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

License

MIT © imagemin

Something went wrong with that request. Please try again.