JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q52892F
  • License (Apache-2.0 OR MIT)

jpeg-archive wrappers to make them seamlessly available as local dependencies

Package Exports

  • @amory/jpeg-archive-bin
  • @amory/jpeg-archive-bin/lib/index

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@amory/jpeg-archive-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jpeg-recompress-bin Build Status Build status

Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized

You probably want imagemin-jpeg-recompress instead.

Install

$ npm install --save jpeg-recompress-bin

Usage

const {execFile} = require('child_process');
const jpegRecompress = require('jpeg-recompress-bin');

execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], err => {
    console.log('Image minified');
});

CLI

$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help

License

MIT © Imagemin