https://github.com/gemini-testing/gemini-optipng
Plugin for Gemini which optimize reference images.
https://github.com/gemini-testing/gemini-optipng
gemini-plugin
Last synced: 28 days ago
JSON representation
Plugin for Gemini which optimize reference images.
- Host: GitHub
- URL: https://github.com/gemini-testing/gemini-optipng
- Owner: gemini-testing
- License: mit
- Created: 2016-08-19T14:15:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T14:20:35.000Z (over 6 years ago)
- Last Synced: 2025-03-25T07:51:09.785Z (4 months ago)
- Topics: gemini-plugin
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# gemini-optipng
[](https://www.npmjs.org/package/gemini-optipng)
[](https://travis-ci.org/gemini-testing/gemini-optipng)
[](https://coveralls.io/r/gemini-testing/gemini-optipng?branch=master)
[](https://david-dm.org/gemini-testing/gemini-optipng)Plugin optimizes reference images at the time of their update via `gemini update` command.
It uses [optipng](https://github.com/imagemin/optipng-bin) 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](http://optipng.sourceforge.net/optipng-0.7.6.man.pdf).
Set the configuration to your `.gemini.yml`:
```yml
system:
plugins:
gemini-optipng:
level: 7
```If you want set default level optimization use this config:
```yml
system:
plugins:
gemini-optipng: true
```## Debug mode
To turn on debug mode set `DEBUG=gemini:optipng` enviroment variable:
```bash
$ DEBUG=gemini:optipng ./node_modules/.bin/gemini update
```Console output:
```bash
✓ path/to/suite stateName [browserId]
gemini:optipng path/to/reference/image.png compressed by 30%
```