New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

imagemin-ect

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-ect

Efficient-Compression-Tool wrapper for imagemin

latest
Source
npmnpm
Version
1.4.0
Version published
Maintainers
1
Created
Source

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

Keywords

Efficient-Compression-Tool

FAQs

Package last updated on 08 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts