1.4.0 • Published 4 years ago

imagemin-ect v1.4.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

Node.js Package

imagemin-ect

Efficient-Compression-Tool imagemin plugin Efficient-Compression-Tool by fhanau

Install

$ npm install -save imagemin-ect

Usage

const imagemin = require('imagemin');
const imageminEct = require('imagemin-ect');

imagemin(['images/*.png'], 'build/images', {use: [imageminEct()]}).then(() => {
	console.log('Images optimized');
});

API

imageminEct(options)(buffer)

Returns a promise for a buffer.

buffer

Type: Buffer

Buffer to optimize.

options

Type: Object

optimizationLevel

Type: number Default: 3

Select an optimization level between 1 and 9.

The optimization level determines how much optimization is done; higher levels take longer, but may have better results.

strip

Type: boolean Default: true

Discard metadata

allfiltersCheap

Type: boolean Default: false

Try several png filter strategies. Cheaper than regular allfilters, but still improves compression

mtDeflate

Type: boolean Default: false

Use several threads to compress png files May decrease compression ratio

License

MIT © imagemin Apache License 2.0 © Efficient-Compression-Tool

1.3.3

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago