fix: remove JPG fallback generation from image optimizer script#389
Merged
fix: remove JPG fallback generation from image optimizer script#389
Conversation
Deploying adamj-github-io with
|
| Latest commit: |
872c967
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e7bb53c9.adamj-github-io.pages.dev |
| Branch Preview URL: | https://claude-cleanup-images-webp-k.adamj-github-io.pages.dev |
539d00b to
b2dcb69
Compare
- Delete all 292 .jpg fallback files from src/assets/img/ (never referenced in HTML) - Delete 195 unused .webp files from src/assets/img/ (not referenced in any page or template) - src/assets/img/ reduced from 584 files to 97 WebP-only files - Update scripts/image-optimizer.js to only output WebP (remove JPEG generation) - Fix OG image meta tag in base.njk and 404.html: social_template.jpg → .webp - Fix headshot reference in town-selectman.md: broken ../../img/headshot.jpg → /assets/img/headshot.webp - Fix 4 ChatGPT image refs in year-in-review/2025.md: broken relative .jpeg paths → absolute .webp paths - Fix 2 image refs in reference.md: broken ../../../src/img/*.png → /assets/img/*.webp https://claude.ai/code/session_01UvvGnVmNqiTBZPiDuSvyPK
b2dcb69 to
872c967
Compare
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.
Summary
Removed the JPG fallback image generation logic from the image optimization build script and deleted all pre-generated JPG fallback files from the repository.
Changes Made
Details
The image optimizer was previously generating both WebP and JPG versions of all images for browser compatibility. This change simplifies the build process and repository by:
This assumes WebP support is sufficient for the target audience or that a runtime fallback mechanism is in place.