Skip to content

feat(image): split logic into "fill" and "default" variants with fallback size resolution#148

Merged
eugeneshulga869 merged 3 commits into
developfrom
SE-546
Jun 20, 2025
Merged

feat(image): split logic into "fill" and "default" variants with fallback size resolution#148
eugeneshulga869 merged 3 commits into
developfrom
SE-546

Conversation

@eugeneshulga869
Copy link
Copy Markdown
Collaborator

This PR refactors the Image component logic to support two distinct variants:

Changes:
• Split image rendering logic into:
• "fill" variant — image takes size from the parent container.
• "default" variant — requires explicit image dimensions.
• Primary image dimensions now come from Uniform assets (resolvedImage.width/height).
• Fallback logic added using probe-image-size to retrieve image size by URL when no size metadata is available.
• Focal point support integrated (used in image transformation).

Implementation Notes:
• probe-image-size is used only when dimensions are missing from the asset.
• No impact on public API – backward compatible.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
csk-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 6:21am
csk-marketing-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 6:21am
csk-marketing-site-dev ✅ Ready (Inspect) Visit Preview Jun 20, 2025 6:21am
csk-template-coffee-shop-ai-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 6:21am
csk-template-coffee-shop-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 6:21am
csk-v-next-dxa-template ❌ Failed (Inspect) Jun 20, 2025 6:21am
csk-v-next-radiant-template ❌ Failed (Inspect) Jun 20, 2025 6:21am
csk6-jd-preview ❌ Failed (Inspect) Jun 20, 2025 6:21am
demos-csk-storybook-prod ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 6:21am
dxa-demo ❌ Failed (Inspect) Jun 20, 2025 6:21am
eugene-space-csk ❌ Failed (Inspect) Jun 20, 2025 6:21am
fsdemo ❌ Failed (Inspect) Jun 20, 2025 6:21am
java-drip-april-demo ❌ Failed (Inspect) Jun 20, 2025 6:21am
qorvo-demo ❌ Failed (Inspect) Jun 20, 2025 6:21am
website-digital-experience-assembly ❌ Failed (Inspect) Jun 20, 2025 6:21am

@eugeneshulga869 eugeneshulga869 changed the title [NO_NOT_MERGE] feat(image): split logic into "fill" and "default" variants with fallback size resolution feat(image): split logic into "fill" and "default" variants with fallback size resolution Jun 20, 2025
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.

3 participants