Skip to content

seo: raster (PNG) OG image fallback for older social previewers #6

@BryanFRD

Description

@BryanFRD

Branded OG cards landed as SVG (/og.svg) on FerrLabs/FerrFlow/FerrTrack/FerrVault/FerrGrowth/FerrGames sites. Modern previewers handle SVG (Slack, Discord, LinkedIn, X, Telegram, iMessage) but some older crawlers + Facebook expect raster.

To get full coverage:

  • Add a build step (e.g. @resvg/resvg-js, sharp, or satori if templating from React) that rasterises og.svgog.png 1200×630 at build time
  • Update Layout.astro to set both og:image (PNG) AND og:image:type + a fallback chain
  • Optionally generate per-page OG images (hero title rendered) via @vercel/og

Per-repo task. FerrFlow already has a hand-made og.png so only the 4 product sites + holding need the build step (and FerrGames has its own og-image.svg).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions