jdf-jpg

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i jdf-jpg

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • wshxbqq