Skip to content

Compress images with oxipng#1519

Merged
nikoshell merged 5 commits into
ep2026from
oxipng
Jun 30, 2026
Merged

Compress images with oxipng#1519
nikoshell merged 5 commits into
ep2026from
oxipng

Conversation

@hugovk

@hugovk hugovk commented Jan 23, 2026

Copy link
Copy Markdown
Member

Fixes #1518.

See #1514 (comment) for amount of compression.

Also add pre-commit hook, and update README about how to use prek, which is a faster version pre-commit client. And you can use either locally.


I've not committed the compressed files here, let's see if pre-commit.ci will do it.

@europython-society

europython-society commented Jan 23, 2026

Copy link
Copy Markdown
Member

Preview available

Key Value
url https://oxipng.ep-preview.click
last update 2026-06-30T07:55:08.276Z

@hugovk

hugovk commented Jan 23, 2026

Copy link
Copy Markdown
Member Author

Hmm, timeout after 180 seconds!

I'll run it locally and push, and see if that makes a difference. Another option is to remove -o=max which should make it quicker, but still compress well.

@hugovk

hugovk commented Jan 23, 2026

Copy link
Copy Markdown
Member Author

Same thing. Let's try without -o=max, locally that speeds it from 2m42s to 11s!

The commit with compression did use -o=max.

@hugovk

hugovk commented Jan 23, 2026

Copy link
Copy Markdown
Member Author

Bingo!

@hugovk hugovk marked this pull request as ready for review January 23, 2026 12:00
@egeakman

Copy link
Copy Markdown
Member

Thank you so much for implementing this @hugovk! I just realized I forgot to clean up some images from last year (the ones in public), do you mind if we hold this up for now and rebase it after the clean-up?

@hugovk

hugovk commented Jan 26, 2026

Copy link
Copy Markdown
Member Author

Sure, just ping when ready!

@hugovk

hugovk commented May 23, 2026

Copy link
Copy Markdown
Member Author

Little reminder about this, it could help for things like #1588 as well :) Was the cleanup done?

@hugovk hugovk force-pushed the oxipng branch 2 times, most recently from 795453c to 2701062 Compare June 24, 2026 12:24
@hugovk

hugovk commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

Also converted src/content/sponsors/vercel/display.png from a JPG with a .png extension to a real PNG.

@nikoshell

nikoshell commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

I will rebase and merge changes as we have space issues on preview

@nikoshell nikoshell merged commit 542d8b6 into ep2026 Jun 30, 2026
9 checks passed
@nikoshell nikoshell deleted the oxipng branch June 30, 2026 07:58
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.

Image sizes make cloning the project slow

4 participants