You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rdrew 1440706ce3 fixed gulp 6 years ago
..
index.js fixed gulp 6 years ago
license fixed gulp 6 years ago
package.json fixed gulp 6 years ago
readme.md fixed gulp 6 years ago

readme.md

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');

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