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

Compress images with oxipng #3

Merged
merged 1 commit into from
Oct 10, 2024

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 wheel-next: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