Package Exports
- imagemin-jpegoptim
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 (imagemin-jpegoptim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
imagemin-jpegoptim

Install
$ npm install --save imagemin-jpegoptimSee jpegoptim-bin's install section for requirements.
Usage
const imagemin = require('imagemin');
const imageminJpegoptim = require('imagemin-jpegoptim');
imagemin(['images/*.jpg'], 'build/images', {
use: [
imageminJpegoptim()
]
}).then(() => {
console.log('Images optimized');
});API
imageminJpegoptim([options])(buffer)
Returns a promise for a buffer.
options
progressive
Type: boolean
Default: false
Lossless conversion to progressive.
max
Type: number
Set maximum image quality factor. (0-100).
size
Type: number string
Try to optimize file to given size. Target size is specified either in kilo bytes (1-) or as percentage (1%-99%).
buffer
Type: buffer
Buffer to optimize.
License
MIT © imagemin