Open hugovk opened 3 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ep2024 | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 4, 2024 10:23am |
@hugovk mmh, I don't think this would change much, since we are using Astro to optimise the images
Not sure why it is not resizing the sponsor ones well though 🤔
should be fixed after merging this: https://github.com/EuroPython/website/pull/781
I think we could close this, I don't think we need to optimise the source images, unless we want to save space on the git repo (but then we'd need to purge the previous images from the history too), what do you think?
Larger files are still being served, even after merging #781.
I checked two files from the website (favicon.png
and social-card.png
) and they're still the bigger sizes (30k and 104k) rather than the smaller ones in this PR (24K and 85k).
@hugovk which ones?
for favicon and social, we can update them 😊
Some of the images on the website are much larger than they need to be, for example one of the of the sponsor logo images is 5692x3200 but displayed at 250x120!
All the sizes:
These should really be resized to something closer to their display size (the same applies to WEBP images). I've not done that here.
Instead, I've losslessly compressed the PNGs https://github.com/shssoichiro/oxipng (it's a multithreaded version of optiPNG to reduce their total size by about 15% from 93 MB to 79 MB, using the command
git ls-files "*.png" | xargs oxipng -o max --strip all