Kevin 29b9a0c50c clean && clean html base | 4 éve | |
---|---|---|
.. | ||
lib | 4 éve | |
cli.js | 4 éve | |
index.js | 4 éve | |
license | 4 éve | |
package.json | 4 éve | |
readme.md | 4 éve |
mozjpeg is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders
You probably want imagemin-mozjpeg
instead.
$ npm install mozjpeg
const {execFile} = require('child_process');
const mozjpeg = require('mozjpeg');
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});
$ npm install --global mozjpeg
$ mozjpeg --help
MIT © Imagemin