Sharpen template images with DPR-aware srcset and quality knob#18972
Sharpen template images with DPR-aware srcset and quality knob#18972jeffmerrick wants to merge 3 commits into
Conversation
Cap the 1x src at maxWidth but extend srcset up to 2x maxWidth so high-DPI displays get sharp images, add a `quality` parameter (default q90, q95 for screenshot-heavy slots), and set explicit maxWidth/quality on the hero, section-header, and superintelligence-infrastructure callsites so they fill their actual container widths. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
ReviewTargeted, well-scoped fix for the blurry-image regression from #18762. The DPR-aware srcset + Observations
Behavior change for default callers — Callers that use the partial without passing Looks good
Mention @claude if you'd like another pass or want me to take a stab at the |
Switch the original-width fallback from `lt` to `le` so a source that's exactly 2x maxWidth still ends up in the srcset (the candidate list tops out at 3200, so e.g. a 3000w source with maxWidth=1500 would otherwise cap at 2400w). The candidate-dedupe check prevents the loosened bound from producing duplicate entries. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Your site preview for commit 66d188a is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-18972-66d188a3.s3-website.us-west-2.amazonaws.com |
Lighthouse Performance ReportCommit: 66d188a | Metric definitions
|
Proposed changes
Updates
fingerprinted-img.htmlto cap the 1xsrcatmaxWidthwhile extending srcset entries up to 2xmaxWidthso high-DPI displays get sharp resources, and adds aqualityparameter (default q90) for slots where lossy WebP artifacts are visible. Sets explicitmaxWidth/qualityon the hero and section-header partials and the superintelligence-infrastructure hero so each image fills its actual container width instead of defaulting to 800px.Related issues (optional)
Fixes #18932