Skip to content

Serve WebP copies of the images - #498

Merged
simonebortolin merged 2 commits into
mainfrom
claude/webp-images
Oct 9, 2026
Merged

simonebortolin merged 2 commits into
mainfrom
claude/webp-images

Conversation

@simonebortolin

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

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>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

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>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Preview of the website obtained from the PR: https://bf3dce2a.hack-gpon-preview.pages.dev

@simonebortolin
simonebortolin merged commit 0a2f8bd into main Oct 9, 2026
2 checks passed
@simonebortolin
simonebortolin deleted the claude/webp-images branch October 9, 2026 20:37
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.

1 participant