Repository navigation
Convert the hero background images to WebP - #194
Closed
bendichter wants to merge 1 commit into
Closed
bendichter wants to merge 1 commit into
bendichter wants to merge 1 commit into
Conversation
Most pages use aboutBg.png as the background of the title banner. It is a 2.6 MB PNG that sits under a gradient at 90% opacity, and it accounted for most of the image weight of a typical page. The six section backgrounds are now WebP files at the same pixel dimensions, 0.99 MB in total instead of 11.3 MB, and the templates and stylesheet point at the new files. The News pages referenced newsPageBg.png, but the file was named newspageBg.png, so on the case-sensitive production host the image returned 404 and those banners showed only the gradient. The converted file is named to match the reference. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for nwborg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Superseded by #207, which combines this with the related PRs. The commits here are included there unchanged. |
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.
Most pages use
aboutBg.pngas the background of the title banner. It is a 2.6 MB PNG under a gradient at 90% opacity, and it is most of the image weight of a typical page. This converts the six section backgrounds to WebP at the same pixel dimensions (11.3 MB to 1.0 MB in total) and updates the 24 references in the templates and stylesheet. The PNG originals are removed. The median image weight of a page drops from 2.8 MB to 0.6 MB.The News pages reference
newsPageBg.png, but the file is namednewspageBg.png, so on nwb.org the image returns 404 and those banners show only the gradient. The converted file is named to match the reference, so the News banners will show the background like the other pages do.🤖 Generated with Claude Code