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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    2
    • latest

Version History

Package Sidebar

Install

npm i jdf-jpg

Weekly Downloads

2

Version

0.0.5

License

MIT

Last publish

Collaborators

  • wshxbqq