jdf-jpg
v0.0.5
Published
A mozjpeg wrapper for JDF
Downloads
12
Maintainers
Readme
jdf-jpg
A mozjpeg wrapper for JDF see https://github.com/mozilla/mozjpeg/
Install
$ npm install --save jdf-jpg
Usage
const {execFile} = require('child_process');
const mozjpeg = require('jdf-jpg');
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});
CLI
$ npm install --global jdf-jpg
$ jdf-jpg --help