Skip to content

jpegtran bin-wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

ChangbaFE/jpegtran-bin

 
 

Repository files navigation

jpegtran-changba 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.

You probably want imagemin-jpegtran instead.

Install

$ npm install --save jpegtran-changba

Usage

const {execFile} = require('child_process');
const jpegtran = require('jpegtran-changba');

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

CLI

$ npm install --global jpegtran-changba
$ jpegtran --help

License

MIT © Imagemin

About

jpegtran bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%