Skip to content

CT1994/imagemin-pingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Package

imagemin-pingo

pingo — fast web image optimizer by Cédric Louvrier

Install

$ npm install -save imagemin-pingo

Usage

const imagemin = require('imagemin');
const imageminPingo = require('imagemin-pingo');

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

API

imageminPingo([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 [0-9].

web lossless | compression level

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published