Warningog:image

og:image file is too large

Your og:image file is over 600 KB, the limit Meta sets for WhatsApp link previews. Here are the real per-platform limits, why WhatsApp is the strictest, and how to get the size down without visible quality loss.

What you are seeing: Previews are slow to appear, or the image renders on some platforms but not in WhatsApp and other messaging apps.

The limits are not the same everywhere

Facebook accepts up to 8 MB, and LinkedIn and X up to 5 MB, which makes it easy to assume a heavy image is fine. WhatsApp is the constraint that actually bites: Meta's guidelines for WhatsApp link previews set the image limit at 600 KB, and above that the preview arrives with no picture.

PlatformImage file limit
Facebook8 MB
LinkedIn5 MB
X5 MB
WhatsApp600 KB

WhatsApp also wants the image at least 300 pixels wide and no wider than 4:1, which a 1200 × 630 image already meets.

Because WhatsApp is often where links get shared one-to-one, a card that works everywhere except there is a card that fails at exactly the moment someone is recommending you personally.

Stay under 600 KB, ideally around 300 KB

Under 600 KB clears every platform's documented limit, WhatsApp's included, and this checker warns above it. Around 300 KB leaves headroom for slow connections. A well-compressed 1200 × 630 image lands comfortably under 200 KB in most cases, so this is usually achievable without any visible quality cost.

Crawler timeouts are the other reason to care. A slow fetch on a cold CDN edge can exceed the crawler's patience, and a timeout produces a card with no image at all rather than a card with a slow image.

How to get the size down

Choose the format by content. Photographs compress far better as JPEG at quality 80 to 85 than as PNG. Flat graphics with text and solid colours are the opposite — PNG-8 with a reduced palette will beat JPEG both on size and on how crisp the text looks.

Do not export at 2400 pixels wide expecting to serve retina. Social platforms scale the image themselves, and 1200 wide is already the size they design around.

WebP is well supported by the major crawlers now, but it is still the format most likely to be dropped by a smaller platform or an in-house link unfurler. If you need maximum compatibility, stay on JPEG or PNG.

Frequently asked

Why does my image work on Twitter but not WhatsApp?

Almost always file size. X accepts images up to 5 MB, but Meta's limit for WhatsApp link preview images is 600 KB. Compress the image to around 300 KB and it will show in both.

Can I use WebP or AVIF for og:image?

WebP generally works on the major platforms. AVIF support is still patchy. Since a social image is one small file served rarely, the compression win is not worth the compatibility risk — a well-optimised JPEG or PNG is the safer choice.

Fix it with AI

Paste this into Claude Code, Cursor, Copilot or another coding agent, from your project's folder.

Fix this social preview problem in this project.

Problem: og:image file is too large
Tag: og:image
What people see: Previews are slow to appear, or the image renders on some platforms but not in WhatsApp and other messaging apps.
Background: Your `og:image` file is over 600 KB, the limit Meta sets for WhatsApp link previews. Here are the real per-platform limits, why WhatsApp is the strictest, and how to get the size down without visible quality loss.

How to work:
1. Find where this project sets each page's `<head>` metadata — the framework's metadata API, a layout or head component, a page template, or an SEO plugin — and fix it there so every page type gets it, not just one page.
2. Use the page's real content for titles, descriptions and alt text. Don't invent claims, prices or names.
3. Every URL in a meta tag (`og:image`, `og:url`, `twitter:image`) must be absolute and start with `https://`.
4. If an image needs to be made, resized or compressed, tell me exactly what's needed instead of pointing a tag at a file that doesn't exist.
5. Don't change tags or code unrelated to these problems.
6. When you're done, list each change and the problem it fixes, and anything I still need to do by hand.

Full guide (read it first if you can open web pages): https://ogimage.info/learn/og-image-too-large?utm_source=fix-prompt&utm_medium=ai&utm_campaign=guide

When you're done, tell me I can check the result either way:
- On my local dev server, with the Open Graph Debugger Chrome extension: https://chromewebstore.google.com/detail/open-graph-debugger/bepabeobdmmefhhhkonppcppgodhjdno?utm_source=fix-prompt&utm_medium=ai&utm_campaign=guide
- On the live page, once deployed: https://ogimage.info/?utm_source=fix-prompt&utm_medium=ai&utm_campaign=guide

Check your page

Run your URL through the checker to confirm the fix is live and see how the card renders on every platform.

Test a URL

Need a new image? Create one with the free OG image generator.

Related fixes

support