pre-commit: add oxipng a lossless PNG compression optimizer (#11065)
* pre-commit: add oxipng a lossless PNG compression optimizer "Lossless compression is a data compression technique where the original data can be perfectly reconstructed from the compressed data. In essence, no information is lost during compression and decompression, making it ideal for situations where data integrity is critical" https://en.wikipedia.org/wiki/Lossless_compression https://github.com/oxipng/oxipng https://github.com/oxipng/oxipng?tab=readme-ov-file#git-integration-via-pre-commit Ran pre-commit here locally and it compressed the images on first run. So we have less data for some images with the same quality. Less data means less to download etc and saves bandwidth. * Fix up from code review
@ -25,6 +25,13 @@ repos:
|
||||
hooks:
|
||||
- id: identity
|
||||
- id: check-hooks-apply
|
||||
- repo: https://github.com/oxipng/oxipng
|
||||
rev: v9.1.5
|
||||
hooks:
|
||||
- id: oxipng
|
||||
name: run oxipng
|
||||
description: optimize PNG images with lossless compression
|
||||
args: ['-o', '4', '--strip', 'safe', '--alpha']
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.27.2
|
||||
hooks:
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 352 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 434 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 241 B |
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 157 B |
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 279 B |
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 267 B |
|
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 93 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 91 B |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 439 B |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1000 B After Width: | Height: | Size: 730 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 809 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 296 B |
|
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 300 B |
|
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 241 B |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 135 B |
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 11 KiB |