gemini-optipng

2.0.0 • Public • Published

gemini-optipng

NPM version Build Status Coverage Status Dependency Status

Plugin optimizes reference images at the time of their update via gemini update command. It uses optipng and optimizes the image only if it has been changed.

Installation

$ npm install gemini-optipng

Configuration

  • level (optional) Optimization level from 0 to 7. Defaults to 2. Description of optimization levels in the manual.

Set the configuration to your .gemini.yml:

system:
  plugins:
    gemini-optipng:
      level: 7

If you want set default level optimization use this config:

system:
  plugins:
    gemini-optipng: true

Debug mode

To turn on debug mode set DEBUG=gemini:optipng enviroment variable:

$ DEBUG=gemini:optipng ./node_modules/.bin/gemini update

Console output:

✓ path/to/suite stateName [browserId]
gemini:optipng path/to/reference/image.png compressed by 30%

Package Sidebar

Install

npm i gemini-optipng

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

7.69 kB

Total Files

9

Last publish

Collaborators

  • dmitriy96
  • dudagod
  • egavr
  • j0tunn
  • rostik404
  • sipayrt