og-card (alias social-preview) applies w=1200, h=630, fit=cover, JPEG q88. See Presets.
Quick OG image
/p/og-card) and query form (?preset=og-card) are equivalent.
With smart cropping
Off-centre heroes benefit fromgravity=smart or a stored focal point from image analysis:
Branded cards with text overlay
Add title and subtitle on the fly — useful for blog posts and product launches:React helper
Multiple platforms from one source
| Platform | Suggested params |
|---|---|
| Facebook / LinkedIn OG | preset=og-card (1200×630) |
| Twitter / X large card | w=1200&h=600&fit=cover&format=jpg |
| Square share (some apps) | w=1200&h=1200&fit=cover&gravity=smart |
<picture> art direction when mobile shares need a different crop than link previews.
Origin-backed marketing sites
If the hero lives on your deployed site (public/hero.jpg), register an origin source and build:
Caching and updates
OG URLs are cached aggressively at the edge. When you change the hero:- Preferred: upload a new file id and update meta tags.
- In place: purge
asset:{fileId}— see Cache-tag purge.