oxipng pre-commit mirror
Mirror of oxipng for pre-commit.
Installation
Add to your pre-commit config:
- repo: https://github.com/adamchainz/pre-commit-oxipng
rev: '' # Use the sha / tag you want to point at
hooks:
- id: oxipng
By default all PNG files are passed to oxipng with the default settings, which provides reasonable optimization.
Optimizing all the PNG’s in your repository is expensive and won’t produce results often. You probably want to skip oxipng on your CI system, and run it only on commit. On pre-commit.ci declare it to be skipped like so:
ci:
skip:
- oxipng
On other CI systems, use pre-commit’s SKIP
environment variable.