Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T14:20:35.000Z (about 6 years ago)
- Last Synced: 2024-10-13T11:21:55.314Z (3 months ago)
- Topics: gemini-plugin
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 6
- 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
[![NPM version](https://img.shields.io/npm/v/gemini-optipng.svg?style=flat)](https://www.npmjs.org/package/gemini-optipng)
[![Build Status](https://travis-ci.org/gemini-testing/gemini-optipng.svg?branch=master)](https://travis-ci.org/gemini-testing/gemini-optipng)
[![Coverage Status](https://img.shields.io/coveralls/gemini-testing/gemini-optipng.svg?style=flat)](https://coveralls.io/r/gemini-testing/gemini-optipng?branch=master)
[![Dependency Status](https://img.shields.io/david/gemini-testing/gemini-optipng.svg?style=flat)](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%
```