backoffice/node_modules/jpeg-recompress-bin
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
lib first commit 2020-02-06 10:09:39 +00:00
vendor first commit 2020-02-06 10:09:39 +00:00
cli.js first commit 2020-02-06 10:09:39 +00:00
index.js first commit 2020-02-06 10:09:39 +00:00
license first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00
readme.md first commit 2020-02-06 10:09:39 +00:00

readme.md

jpeg-recompress-bin Build Status 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

Install

$ npm install --save jpeg-recompress-bin

Usage

var execFile = require('child_process').execFile;
var jpegRecompress = require('jpeg-recompress-bin');

execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], function (err) {
	console.log('Image minified');
});

CLI

$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help

License

MIT © imagemin