Menu

Why Your Open Graph Image Breaks on WhatsApp (300 KB Limit & Relative Path Pitfalls)
📰

Why Your Open Graph Image Breaks on WhatsApp (300 KB Limit & Relative Path Pitfalls)

DEV Community: nextjs·Wane Hong·about 7 hours ago
#fJtCAb9D
#devtonextjs#devto#dev#whatsapp#relative
Long article (440 words) — no AI summary yet.
Reading 0:00
15s threshold

You ship a clean landing page, paste the URL into Slack or X, and the preview card looks sharp. Then someone drops the exact same link into a WhatsApp group—and the thumbnail vanishes. Only a bare URL and two lines of text show up.

If you have hit this before, it is rarely a caching bug. Most broken link previews across messaging apps come down to three subtle metadata traps that standard visual previewers ignore.

1. WhatsApp’s ~300 KB Thumbnail Ceiling

While Facebook, LinkedIn, and X accept Open Graph images up to 5–8 MB, WhatsApp’s link unfurler is far stricter. When an og:image file exceeds roughly 300 KB—or takes more than a couple of seconds to respond—WhatsApp silently drops the thumbnail rather than resizing it. Uncompressed PNG hero graphics exported straight from Figma (often 600 KB to 2 MB) are the most common culprit.

Fix: Export static social cards as optimized JPEG or compressed PNG under 250 KB, or serve edge-rendered PNGs with proper Cache-Control headers.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.