0.0.5 • Published 7 years ago

jdf-jpg v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

NPM

NPM version Build Status

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