Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

imagemin-pngout

4.0.0 • Public • Published

imagemin-pngout Build Status Build status

pngout imagemin plugin

Install

$ npm install imagemin-pngout

Usage

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

API

imageminPngout([options])(buffer)

Returns a Promise<Buffer>.

options

Type: Object

strategy

Type: number
Default: 0

Select a strategy level between 0 and 4:

0. Extreme 1. Intense 2. Longest match 3. Huffman only 4. Uncompressed

License

MIT © Imagemin

install

npm i imagemin-pngout

Downloadsweekly downloads

353

version

4.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

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