Nondigestible Purple Mayonnaise
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

jpegoptim-bin

4.0.0 • Public • Published

jpegoptim-bin Build Status

jpegoptim is a utility for optimizing JPEG files that provides lossless optimization (based on optimizing the Huffman tables) and "lossy" optimization based on setting a maximum quality factor

You probably want imagemin-jpegoptim instead.

Install

$ npm install jpegoptim-bin

Make sure you have the correct version of libjpeg. See jpegoptim's README for more information.

Usage

const {execFile} = require('child_process');
const jpegoptim = require('jpegoptim-bin');
 
const args = [
    '--overwrite',
    '--strip-all',
    '--strip-iptc',
    '--strip-icc',
    '--all-progressive',
    '--dest=build',
    'input.jpg'
];
 
execFile(jpegoptim, args, err => {
    console.log('Image minified');
});

CLI

$ npm install --global jpegoptim-bin
$ jpegoptim --help

License

MIT © Imagemin

install

npm i jpegoptim-bin

Downloadsweekly downloads

3,603

version

4.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar