Skip to content
jpegtran plugin for imagemin
JavaScript
Branch: master
Clone or download
1000ch Use Travis to test on Windows (#22)
* Use Travis to test on Windows

* Update ava
Latest commit caf5e15 Jan 13, 2019

readme.md

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

You can’t perform that action at this time.