backoffice/node_modules/mozjpeg
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

mozjpeg-bin Build Status

mozjpeg is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders

Install

$ npm install --save mozjpeg

Usage

var execFile = require('child_process').execFile;
var mozjpeg = require('mozjpeg');

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

CLI

$ npm install --global mozjpeg
$ mozjpeg --help

License

MIT © imagemin