You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rdrew
1440706ce3
|
6 years ago | |
---|---|---|
.. | ||
lib | 6 years ago | |
test | 6 years ago | |
vendor | 6 years ago | |
cli.js | 6 years ago | |
index.js | 6 years ago | |
license | 6 years ago | |
package.json | 6 years ago | |
readme.md | 6 years ago |
readme.md
jpegtran-bin
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