I've built a quick tool to see which image formats are supported on sites that allow Open Graph Protocol link previews.
As I've whinged about before, Facebook have all-but abandoned their efforts to standardise OGP. Which leads to a situation where a bunch of sites all have conflicting requirements on what they'll show. There's no easy way to find out which sites support which image formats, so I've done this manually.
I built OGP Format Tester to see whether social networking sites and apps supported modern formats like AVIF and JPEG-XL. Here are the results of my tests:
| AVIF | GIF 0 | JPEG | JXL | PNG | SVG | WEBP | |
|---|---|---|---|---|---|---|---|
| Mastsodon | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| BlueSky | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| Threads | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | |
| ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | |
| ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | |
| Signal | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| Telegram | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| Slack | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| Discord | ✅ | ❌ 1 | ❌ 2 | ❌ | ✅ | ❌ | ✅ |
| Lemmy | ✅ | ✅ | ✅ | ✅ 3 | ✅ | ✅ | ✅ |
| Teams | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
| Discourse | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
There's a never ending parade of image formats - but these seven are the ones which seem best supported in all major browsers.
Similarly, I'm sorry if I haven't included your favourite site on here - feel free to leave the results in a comment.
Methodology
I created a simple page like this:
HTML
<!DOCTYPE html> <html lang="en-GB"> <head> <meta charset="UTF-8"> <title>An OGP Image Test Site for WebP</title> <meta property="og:type" content="website"> <meta property="og:locale" content="en_GB"> <meta property="og:site_name" content="OGP Site Name"> <meta property="og:title" content="OGP Title"> <meta property="og:description" content="Testing whether WEBP images are displayed in OGP"> <meta property="og:image" content="https://ogp.viii.fi/webp.webp"> <meta property="og:image:type" content="image/webp"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="600"> <meta property="og:image:alt" content="A WebP Image"> </head>
That should contain all the metadata necessary for a site to display some preview text and an image.
I then pasted in a URl for each image format into each site. If a preview image came up, they got a tick. If not, a cross.
It's weird that Meta owned Facebook, WhatsApp, and Threads all have slightly different support, and I have no idea why Discord won't show (my?) JPEG previews.
Annoyingly, Facebook, Threads, and Discord are the only ones who support AVIF. JPEG-XL is still a distant dream for most.
Perhaps one day the promise of Web 2.0 will be fully realised and sites will be interoperable with each other.
Testing
If you want to test these yourself, you can use the following URls:
![]()
https://ogp.viii.fi/ogp.php?format=AVIF https://ogp.viii.fi/ogp.php?format=GIF https://ogp.viii.fi/ogp.php?format=JPEG https://ogp.viii.fi/ogp.php?format=JXL https://ogp.viii.fi/ogp.php?format=PNG https://ogp.viii.fi/ogp.php?format=SVG https://ogp.viii.fi/ogp.php?format=WEBP
-
Animated GIF support was only seen on Slack, Threads, Lemmy, Teams, Discourse. The others only displayed the first frame. ↩︎
-
I suspect Discord want you to post GIFs directly? ↩︎
-
I tried in several Discord channels, but couldn't get my JPEG to display. ↩︎
-
Lemmy doesn't proxy images for OGP - it just links directly back to the origin. I'm not sure how secure or sensible that is. ↩︎