Noteworthy Programming Masterpiece
Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@dinamomx/imagemin-jpegtran

5.0.4 • Public • Published

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

install

npm i @dinamomx/imagemin-jpegtran

Downloadsweekly downloads

1

version

5.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability