Terence Eden. He has a beard and is smiling.
Theme Switcher:

OGP Image Format Support on Major Sites and Apps

· 450 words

🄯 CC BY-SADigital Object Identifier10.59350/kxc16-c0w84


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 ✅ ✅ ✅ ❌ ✅ ❌ ✅
Facebook ✅ ✅ ✅ ❌ ✅ ✅ ✅
WhatsApp ❌ ✅ ✅ ❌ ✅ ❌ ✅
LinkedIn ❌ ✅ ✅ ❌ ✅ ❌ ✅
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:

Copied HTML to 📋
 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:

Copied to 📋
 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

  1. Animated GIF support was only seen on Slack, Threads, Lemmy, Teams, Discourse. The others only displayed the first frame. ↩︎

  2. I suspect Discord want you to post GIFs directly? ↩︎

  3. I tried in several Discord channels, but couldn't get my JPEG to display. ↩︎

  4. 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. ↩︎


Share this post on…

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

See allowed HTML elements: <a href="" title="">
<abbr title="">
<acronym title="">
<b>
<blockquote cite="">
<br>
<cite>
<code>
<del datetime="">
<em>
<i>
<img src="" alt="" title="" srcset="" width="" height="">
<p>
<pre>
<q cite="">
<s>
<strike>
<strong>

Your post must include a link to this post.

How does this work?
To respond on your own website, write a post which contains a link to this post - then enter the URl of your page here. Learn more about WebMentions.