Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: png optimization #70

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

jathek
Copy link
Contributor

@jathek jathek commented Jan 15, 2024

da90591:
Losslessly optimize 15 png files with Oxipng. This decreases the size of the files from 1.84 MiB to 0.98 MiB.
oxipng command:

oxipng -o 6 -i 0 -Z -p -v --strip safe %1

d235fbc:
Swap out an image file for a smaller, seemingly identical file elsewhere in the repo. This changes the size of unbalanced.png from 32.2 KiB (after Oxipng compression) to 11.0 KiB.

In total, the png files go from 1.84 MiB to 985 KiB, a decrease of ~47.7%, and the repo goes from 11.8 MiB to 10.9 MiB, a decrease of ~7.6%.

oxipng command:
```
oxipng -o 6 -i 0 -Z -p -v --strip safe %1
```
The two image files appear to have identical dimensions and content but unbalanced.png was ~3x as big, even after oxipng compression.
@jbrodriguez
Copy link
Owner

it's just awesome to see a PR like this (even more considering this is the open source space), so fact based 🙌

thanks a lot for this one !

@jbrodriguez jbrodriguez merged commit cfaef30 into jbrodriguez:main Jan 16, 2024
@jathek jathek deleted the refactor/png-optimization branch January 16, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants