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

jpegtran imagemin plugin
Install
$ npm install --save imagemin-jpegtran
Usage
const Imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');
new Imagemin()
.src('images/*.jpg')
.dest('build/images')
.use(imageminJpegtran({progressive: true}))
.run();
You can also use this plugin with gulp:
const gulp = require('gulp');
const imageminJpegtran = require('imagemin-jpegtran');
gulp.task('default', () => {
return gulp.src('images/*.jpg')
.pipe(imageminJpegtran({progressive: true})())
.pipe(gulp.dest('build/images'));
});
API
imageminJpegtran(options)
options.progressive
Type: boolean
Default: false
Lossless conversion to progressive.
options.arithmetic
Type: boolean
Default: false
Use arithmetic coding.
License
MIT © imagemin