Ninja Parading Musically
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

imagemin-advpng

5.0.0 • Public • Published

imagemin-advpng Build Status Build status

advpng imagemin plugin

Install

$ npm install imagemin-advpng

Usage

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

API

imageminAdvpng([options])(buffer)

options

Type: Object

optimizationLevel

Type: number
Default: 3

Select an optimization level between 0 and 4.

Levels:

0 Don't compress
1 Compress fast (zlib)
2 Compress normal (7z)
3 Compress extra (7z)
4 Compress extreme (zopfli)

iterations

Type: number

Optionally specify an additional number of iterations to perform for optimization levels 3 and 4. May provide marginally better compression, at the cost of additional time.

buffer

Type: Buffer

Buffer to optimize.

License

MIT © imagemin

install

npm i imagemin-advpng

Downloadsweekly downloads

253

version

5.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability