optimize-png-for-web

0.1.5 • Public • Published

Installation

yarn add optimize-png-for-web

Also, you need to install pngquant and zopflipng. On Mac you can do it via Brew; brew install pngquant and brew install zopfli respectively.

Usage

Check usage example in test.js file:

require('./src/index')('./sample-images', './out', {
    resizeTo1x2x: true,
    emitErrorsOnWarnings: false,
})

If resizeTo1x2x is false than images will not be resized.

If emitErrorsOnWarnings is true than all warning will produce errors and will stop script execution.

Readme

Keywords

none

Package Sidebar

Install

npm i optimize-png-for-web

Weekly Downloads

0

Version

0.1.5

License

none

Unpacked Size

2.18 MB

Total Files

86

Last publish

Collaborators

  • yankovsky