feat: add captureShareImage util for element-to-OG-image capture - #6426
feat: add captureShareImage util for element-to-OG-image capture#6426capJavert wants to merge 1 commit into
Conversation
Captures any element (or React ref) via lazy-loaded snapdom and composes it onto a 1200x630 OG-sized PNG: contain-fit with theme-aware frame background and an optional branded bottom bar mirroring the app header (background-default fill, subtlest-tertiary top border, header logo rendered from LogoIcon/LogoText with theme color resolved at capture time). Dev builds expose window.captureShareImage for console testing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@claude review |
|
Claude finished @capJavert's task in 4m 21s —— View job Review:
|
Captures any element (or React ref) via lazy-loaded snapdom and composes it onto a 1200x630 OG-sized PNG: contain-fit with theme-aware frame background and an optional branded bottom bar mirroring the app header (background-default fill, subtlest-tertiary top border, header logo rendered from LogoIcon/LogoText with theme color resolved at capture time). Dev builds expose window.captureShareImage for console testing.
Changes
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Preview domain
https://dev-take-pic.preview.app.daily.dev