Repository navigation
Serve WebP copies of the images - #498
Merged
Merged
Conversation
|
Preview of the website obtained from the PR: https://7713e3f1.hack-gpon-preview.pages.dev |
After the VitePress build, scripts/optimize-images.mjs makes a WebP copy of every JPEG/PNG, at most 1920 px on the longer side and with the EXIF orientation applied (256.6 MB -> 26.9 MB). ImageFigure serves it through <picture>, keeps the original as fallback and links to it for the full resolution. The images in the repository are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonebortolin
force-pushed
the
claude/webp-images
branch
from
October 9, 2026 16:43
d7a4951 to
dc299c7
Compare
|
Preview of the website obtained from the PR: https://4eade081.hack-gpon-preview.pages.dev |
Clicking an image shows the original in an overlay, with the WebP copy while it loads; another click zooms to 100% around the clicked point, and Esc, the close button or the backdrop close it. Images with an explicit url still open that link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview of the website obtained from the PR: https://bf3dce2a.hack-gpon-preview.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After the VitePress build, scripts/optimize-images.mjs makes a WebP copy of every JPEG/PNG, at most 1920 px on the longer side and with the EXIF orientation applied (256.6 MB -> 26.9 MB). ImageFigure serves it through, keeps the original as fallback and links to it for the full resolution. The images in the repository are untouched.