Skip to content

feat: inject original as srcset fallback for source-limited crop sizes - #295

Merged
marcoluzi merged 2 commits into
mainfrom
feat/original-srcset-fallback
Sep 18, 2026
Merged

marcoluzi merged 2 commits into
mainfrom
feat/original-srcset-fallback

Conversation

@marcoluzi

@marcoluzi marcoluzi commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Crop sizes with srcset multipliers whose top multiplier can't be generated (source too small to crop at that size) capped the srcset at the largest available crop. When the original beats the largest generated crop, it's now appended as an extra srcset candidate at its effective width and displayed with object-fit: cover, giving retina screens the sharpest resolution the source can provide.

Checklist

  • PR title follows Conventional Commits (feat:, fix:, refactor:, perf:, revert:)
  • Changes are focused on a single concern
  • I have tested these changes

@marcoluzi
marcoluzi merged commit e5b329c into main Sep 18, 2026
5 checks passed
@marcoluzi
marcoluzi deleted the feat/original-srcset-fallback branch September 18, 2026 05:59
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