OG image not showing because of WebP, SVG or AVIF

Not every preview crawler reads every image format. X says SVG is not supported, Meta lists only JPEG, GIF and PNG for og:image, and Discord accepts WebP and AVIF. Serve og:image as a 1200 x 630 px JPEG or PNG, keep WebP and AVIF for the page itself, and share the link again.

Last updated

linkpreview.app
Meta Tag checker
framer.com
og:title
og:image
x.comRefresh
Launch week: everything new
From yoursite.com
index.html<head>
+<meta property="og:image"
+ content="/og/launch.png">
Quick fix

  1. Open the page in the meta tag checker and look at the file type of the og:image URL.

  2. If it is SVG, WebP or AVIF, export a JPEG or PNG copy at 1200 x 630 px.

  3. Point og:image and twitter:image to the new file under a new URL, and set og:image:type to image/jpeg or image/png.

  4. Refresh the preview in each app, or share the link with ?v=2.

Why the format breaks the preview

  • The image is an SVG. X says SVG is not supported for card images, and Meta, LinkedIn and Discord do not list it.

  • The image is WebP. X and Discord list WebP, but Meta only lists JPEG, GIF and PNG, and LinkedIn lists JPG, PNG and GIF.

  • The image is AVIF. Discord lists AVIF, while X, Meta and LinkedIn do not.

  • A CDN changes the file. Some image CDNs send WebP or AVIF based on the request, so a crawler can get a different format than the file name suggests.

  • The GIF is animated. X only uses the first frame.

The Open Graph protocol documentation, showing the required og:title, og:type, og:image, and og:url basic metadata and an example.

How to fix it

  1. Copy the og:image URL from the meta tag checker and open it in a new tab.

  2. Run curl -sI on the image URL and read Content-Type. It should say image/jpeg or image/png.

  3. Export a JPEG for photos or a PNG for flat graphics and text, at 1200 x 630 px.

  4. Save it under a new file name, then update og:image and twitter:image. Meta caches images by URL, so a new URL is fetched fresh.

  5. Add og:image:type, og:image:width and og:image:height so crawlers know the file before they download it.

  6. Turn off automatic format conversion for that file in your image CDN.

Discord developer documentation on link previews, showing the required Open Graph tags and an example embed with title, description, and image.

What each platform documents

  • X: JPG, PNG, WEBP and GIF. SVG is not supported.

  • Meta (Facebook and Messenger): image/jpeg, image/gif or image/png for og:image:type.

  • LinkedIn: JPG, PNG or GIF.

  • Discord: PNG, GIF, JPG, JPEG, WebP and AVIF.

  • WhatsApp: no format list. The image should be under 600 KB and at least 300 px wide.

LinkPreview OG image size checker result for framer.com, showing a 2400 by 1260 PNG that is 629 KB and how it fits on X, Facebook, LinkedIn, Slack, WhatsApp, and iMessage.

Developer tests show WebP working in more apps than the docs list, but that can change without notice. JPEG and PNG are accepted by every platform above that publishes a format list.

Image size rules

Aim for 1200 x 630 px. X allows up to 5 MB and WhatsApp asks for under 600 KB, so a compressed JPEG is usually the best fit. Check the file with the OG image size checker.

How to force a refresh

Use a new image URL when you change the file. Then run Scrape Again in Meta’s Sharing Debugger, inspect the URL in LinkedIn Post Inspector, or share the link with a query string such as https://www.framer.com/?v=2. The refresh tool has the steps for each app.

Sources

FAQ

Can og:image be a WebP file?

X and Discord document WebP support, but Meta and LinkedIn do not list it. Use JPEG or PNG for og:image when the link has to work everywhere.

Can og:image be an SVG?

No. X says SVG is not supported, and Meta, LinkedIn and Discord do not list it. Export a PNG or JPEG instead.

What is the best format for an OG image?

A JPEG for photos or a PNG for flat graphics and text, at 1200 x 630 px and kept small for WhatsApp.

Check your page, then refresh the preview

Paste your URL into the free checker to see the exact tags each app reads. Once the tags are right, use the refresh tool to clear the old preview.