JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 306119
  • Score
    100M100P100Q179502F
  • License MIT

jpegtran imagemin plugin

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 Build Status Build status

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