Miss any of our Open RFC calls?Watch the recordings here! »

imagemin-jpegtran

7.0.0 • Public • Published

imagemin-jpegtran Build Status

jpegtran imagemin plugin

Install

$ npm install --save imagemin-jpegtran

Usage

const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');
 
imagemin(['images/*.jpg'], 'build/images', {use: [imageminJpegtran()]}).then(() => {
    console.log('Images optimized');
});

API

imageminJpegtran([options])(buffer)

Returns a promise for a buffer.

options

progressive

Type: boolean
Default: false

Lossless conversion to progressive.

arithmetic

Type: boolean
Default: false

Use arithmetic coding.

buffer

Type: buffer

Buffer to optimize.

License

MIT © imagemin

Install

npm i imagemin-jpegtran

DownloadsWeekly Downloads

274,293

Version

7.0.0

License

MIT

Unpacked Size

3.73 kB

Total Files

4

Last publish

Collaborators

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