Plain definition
Definition of Open Graph Image (og:image)
The og:image metadata property and graphic asset specified in a page's HTML head that social platforms, chat apps, and link previews display whenever someone shares your URL.
og:image + og:image:width (1200) + og:image:height (630) + og:image:type (image/png) + og:image:altWorked example
Under the Open Graph protocol (ogp.me), og:image is one of four required basic properties on every graph object, paired with optional structured metadata tags: og:image:secure_url, og:image:type, og:image:width, og:image:height, and og:image:alt. Declaring explicit pixel dimensions lets social crawlers size the card immediately without downloading the full image first.
Suppose a made-up changelog tool called NotePulse runs on Next.js App Router. For its homepage, the founder drops a crisp 1200x630 PNG named opengraph-image.png (plus opengraph-image.alt.txt) inside the root app folder, staying well under Next.js's 8 MB build limit for opengraph-image files (5 MB for twitter-image). For its 60 guide routes, NotePulse adds a dynamic opengraph-image.tsx generator that renders each guide's title onto a dark card template with generous 80-pixel padding.
Before posting on Slack, LinkedIn, and X, the founder verifies the absolute HTTPS URL loads cleanly without cookies and appends a version tag (?v=2) whenever updating the artwork so social platforms refresh cached thumbnails.
Why it matters when you launch
Launch traffic rarely starts from organic search; it spreads through shared links in Discord servers, Slack channels, X threads, LinkedIn posts, and iMessage chats. In all of those feeds, your og:image occupies roughly ten times the screen area of your URL slug and decides whether busy readers stop scrolling.
Generating per-route Open Graph images for guides, tools, and launch listings also stops every shared link from looking identical. Keep headlines large, center essential visuals away from edges that mobile cards crop, and serve fast PNG or JPEG files over HTTPS rather than SVG, which most social scrapers ignore.
Common mistakes
- Pointing og:image at a relative path, localhost URL, or auth-protected asset, leaving blank gray boxes in Slack, Discord, and X previews.
- Placing logos or headlines right against the outer 10% border of a 1200x630 image where square or tight mobile link cards crop off words.
- Serving an SVG file or an oversized PNG above Next.js's 8 MB opengraph-image limit (or 5 MB twitter-image limit), causing social crawlers or builds to fail.
- Replacing an existing og-image.png file in place after sharing the URL without changing the filename or query string to bust stubborn social caches.
Tools and guides that use it
Free tool
Open Graph & Social Card PreviewerSimulate how your product links and preview images appear on X, LinkedIn, Google Search, and Slack.Free tool
Launch Gallery Spec & Image ResizerCheck dimensions, crop, and pad screenshot assets for Product Hunt, Hauntboard, and social preview cards.Founder guide
How to Fix Broken Link Previews on X, LinkedIn, Slack and iMessage (2026)The Open Graph and card tags platforms actually read, the image dimensions that stop cropping, the Next.js mistakes that silently drop your card, and how to clear stale caches.Founder guide
SEO for Next.js SaaS Sites: App Router Setup Guide (2026)Configure Next.js App Router metadata, canonicals, static prerendering, sitemaps, sanitized JSON-LD, Open Graph images, and Search Console verification for an indie SaaS.Related glossary terms
Official sources
Pritam Ghosh runs Hauntboard and maintains this glossary.
Published · Updated
Building something real? Launch it in public.
A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.