imagemin-jpegtran
jpegtran imagemin plugin
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install imagemin-jpegtran 
SYNC missed versions from official npm registry.

imagemin-jpegtran

jpegtran imagemin plugin

Install

$ npm install --save imagemin-jpegtran

Usage

const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');

(async () => {
	await imagemin(['images/*.jpg'], {
		destination: 'build/images',
		plugins: [
			imageminJpegtran()
		]
	});

	console.log('Images optimized');
})();

API

imageminJpegtran(options?)(buffer)

Returns a promise for a buffer.

options

Type: object

progressive

Type: boolean
Default: false

Lossless conversion to progressive.

arithmetic

Type: boolean
Default: false

Use arithmetic coding.

buffer

Type: buffer

Buffer to optimize.

Current Tags

  • 8.0.0                                ...           latest (2 years ago)

18 Versions

  • 8.0.0                                ...           2 years ago
  • 7.0.0                                ...           6 years ago
  • 6.0.0                                ...           8 years ago
  • 5.0.2                                ...           11 years ago
  • 5.0.1                                ...           11 years ago
  • 5.0.0                                ...           11 years ago
  • 4.3.2                                ...           11 years ago
  • 4.3.1                                ...           11 years ago
  • 4.3.0                                ...           11 years ago
  • 4.2.0                                ...           11 years ago
  • 4.1.0                                ...           12 years ago
  • 4.0.0                                ...           12 years ago
  • 3.1.1                                ...           12 years ago
  • 3.1.0                                ...           12 years ago
  • 3.0.0                                ...           12 years ago
  • 2.0.0                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 80
Today 0
This Week 1
This Month 47
Last Day 1
Last Week 2
Last Month 6
Dependencies (5)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE