Guide · Images
How to Generate Open Graph Images for Link Previews
Updated 2026-10-23 · 4 min read
You shipped the blog post. You paste the URL in Slack. The unfurl shows no image or a cropped logo from 2019.
Generate open graph image online is not the same as fix my meta tags. You need a file at a public HTTPS URL and tags that point to it. ToolComb's OG Image Generator handles the art pass locally; Open Graph Preview sanity-checks the card layout from the strings you enter.
Tag semantics and cache behavior live in How Open Graph tags control link previews. This page is the asset workflow.
What bots actually download
Chat apps and social crawlers fetch og:image (and fallbacks). They do not run your hero animation. They do not respect background-image in CSS unless something else exposes it as og:image.
Minimum viable set alongside the image:
og:title- card headline, not necessarily identical to<title>.og:description- one or two sentences.og:url- canonical page URL.og:image- absolute HTTPS URL to the PNG or JPG you host.
Optional but useful: twitter:card = summary_large_image when you care about X/Twitter layout.
Build the image in the generator
Open OG Image Generator.
- Set title and subtitle text that reads at thumbnail size - big type, short lines.
- Pick layout colors that match brand without low-contrast gray-on-gray.
- Add a logo or photo if the template allows - keep faces and marks inside the safe center; LinkedIn and Slack crop the sides.
- Export at the target aspect (typically 1200×630).
Composition runs in the browser. You still must upload the export to your own hosting - S3, Cloudflare R2, GitHub raw on a public repo, Netlify public/og/ - anywhere the unfurl bot can GET without a cookie.
Host and reference with absolute URLs
Relative paths break unfurlers:
<!-- weak -->
<meta property="og:image" content="/og/launch.png" />
<!-- better -->
<meta property="og:image" content="https://example.com/og/launch.png" />
Check that the image URL returns 200 in a private window without logging in. CDNs that 403 empty Referer headers kill previews even when the HTML is perfect - details in Why link preview shows wrong image.
Preview before you blast the link
Paste og:title, og:description, and og:image into Open Graph Preview. Squint at the crop the way a phone notification panel would.
After deploy, run Meta Tag Extractor on URLs you are allowed to fetch to confirm production HTML matches what you thought you shipped.
The preview tool does not post to networks and does not clear caches.
Design rules that survive cropping
- One idea per card - product name + hook, not a feature matrix.
- High contrast - dark text on busy photos fails at small size.
- No critical text in the outer 10% - platforms shave edges.
- File weight - a 2 MB PNG unfurls but hurts mobile; compress if needed while watching text edges.
Screenshots of UI can be OG images, but dense dashboards read as mud in a Slack sidebar. Consider a simplified hero from the generator instead of a raw 4K capture.
When generation is not enough
Symptoms and where to look:
| Symptom | Likely cause |
|---|---|
| Old title after deploy | Unfurl cache - use platform debuggers where available |
| Wrong image entirely | Missing og:image or crawler picked first <img> on page |
| Image works in browser, fails in Slack | Bot blocked by CDN, auth, or hotlink rules |
| Preview tool looks fine, live URL does not | Staging tags shipped, or CMS stripped meta |
Read How Open Graph tags control link previews for tag interplay. Read Why link preview shows wrong image for bot reachability.
Privacy and unreleased launches
Generating locally avoids sending unreleased creative to a third-party OG template SaaS. The remaining exposure is where you host the PNG and who can GET the staging URL. Password-protected staging with public OG URLs is a common leak - bots and competitors fetch what is public.
For internal drafts, preview with pasted fields in Open Graph Preview without publishing the URL to a channel.
Chain with other image tools
Marketing sometimes wants device frames on the OG art - build base card in the generator, composite in a desktop editor, or use Device Frame Mockup on a sim capture if that matches the story. Presentation hub map: Best free screenshot and mockup tools.
Generate the card, host it yourself, point og:image at the HTTPS URL, preview the unfurl, then post the link once - not before the asset is reachable.
Frequently asked questions
What size should an Open Graph image be?
1200×630 px at roughly 1.91:1 is the common safe target. Platforms crop; keep titles and logos away from the outer edges.
Does generating an OG image set my site's tags automatically?
No. You still add og:image (and og:title, og:description) meta tags in HTML or your CMS pointing at the hosted file. The generator produces the asset; tags are separate.
Will the OG generator upload my logo?
ToolComb builds the card in the browser from the assets you provide in the tab. Host the exported PNG on your CDN or static bucket; the meta tag must point to an absolute HTTPS URL bots can fetch.
Why does Slack show a different image after I fixed tags?
Unfurl caches. Correct HTML does not instantly flush Slack, Facebook, or LinkedIn. See Why link preview shows wrong image.
OG generator vs Screenshot Beautifier?
Beautifier frames an existing UI capture for docs. OG generator composes a link card with title text and layout for social unfurls. Roundup: Best screenshot and mockup tools.
How do I check the card before posting?
Paste tag values into Open Graph Preview. For live pages you control, Meta Tag Extractor reads shipped HTML.
Related guides
More reading that links back to the same tools and workflows.
How Open Graph Tags Control Link Previews
og:title, og:image, and twitter cards - preview before you post.
4 min read
Why Slack and Facebook Show the Wrong Link Preview Image
Open Graph caches, relative URLs, 1200×630 crops, and SPA titles. How to see what crawlers see and fix the card without guessing.
7 min read
Best Free Screenshot and Mockup Tools (No Upload)
When to beautify a capture vs drop it in a device frame vs build an OG card - and how ToolComb's Image Editors hub groups mockup tools separately from format converters.
6 min read
Before/After Image Sliders for Portfolios and Renovations
Align two photos, build a drag comparison slider in the browser, and embed results in portfolios - with honest limits on handheld shots.
4 min read