Skip to content

Commit 7dcffd6

Browse files
authored
Merge pull request #2337 from jbampton/add-oxipng
pre-commit: add oxipng for lossless PNG compression
2 parents 15accfe + eaca5eb commit 7dcffd6

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ repos:
5757
- id: gitleaks
5858
name: run gitleaks
5959
description: check for secrets with gitleaks
60+
- repo: https://github.com/oxipng/oxipng
61+
rev: v9.1.5
62+
hooks:
63+
- id: oxipng
64+
name: run oxipng
65+
description: check PNG files with oxipng
66+
args: ['--fix', '-o', '4', '--strip', 'safe', '--alpha']
-1.37 KB
Loading
-8.86 KB
Loading
-6.04 KB
Loading

0 commit comments

Comments
 (0)