Skip to content

Compress images with oxipng#3

Merged
emmatyping-nv merged 1 commit intowheelnext:pep-777from
hugovk:pep-777-oxipng
Oct 10, 2024
Merged

Compress images with oxipng#3
emmatyping-nv merged 1 commit intowheelnext:pep-777from
hugovk:pep-777-oxipng

Conversation

@hugovk
Copy link

@hugovk hugovk commented Oct 10, 2024

Updates python#4036.

Make PNGs ~50% smaller with https://github.com/shssoichiro/oxipng.

l peps/pep-0777/*.png
.rw-r--r-- hugo staff 234 KB Thu Oct 10 13:52:34 2024  appendix-dl-by-installer.png
.rw-r--r-- hugo staff 248 KB Thu Oct 10 13:52:34 2024  appendix-dl-by-pip-version.pngoxipng -o max --strip all peps/pep-0777/*.png
Processing: peps/pep-0777/appendix-dl-by-installer.png
Processing: peps/pep-0777/appendix-dl-by-pip-version.png
128694 bytes (49.25% smaller): peps/pep-0777/appendix-dl-by-pip-version.png
119972 bytes (49.99% smaller): peps/pep-0777/appendix-dl-by-installer.pngl peps/pep-0777/*.png
.rw-r--r-- hugo staff 117 KB Thu Oct 10 13:53:03 2024  appendix-dl-by-installer.png
.rw-r--r-- hugo staff 126 KB Thu Oct 10 13:53:03 2024  appendix-dl-by-pip-version.png

Copy link

@emmatyping-nv emmatyping-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! There were directly output from matplotlib, so pretty un-optimized.

@emmatyping-nv emmatyping-nv merged commit 111deb2 into wheelnext:pep-777 Oct 10, 2024
@hugovk hugovk deleted the pep-777-oxipng branch October 10, 2024 14:52
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