Skip to content

Image Description

The Image type is defined in ActivityStreams Vocabulary.

In this support table, we only consider how the image description, commonly called AltText is handled. Image descriptions are important from an accessibility standpoint, see WCAG 2.2. Text Alternatives.

It seems that certain implementations, e.g. firefish, store the image description on a per image URL basis and not for every instance of an image reference.

Examples

Example 1

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/g6j1m-kDUBc",
  "published": "2024-10-29T14:21:13Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/nhP7XV_-guI",
    "published": "2024-10-29T14:21:13Z",
    "cc": [],
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    }
  }
}

no result

Example 2

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/2XmRTqPxbA0",
  "published": "2024-10-29T14:21:28Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/4uTUOYPR0gU",
    "published": "2024-10-29T14:21:28Z",
    "cc": [],
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}

no result

Example 3

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/RRZq-LQD-uE",
  "published": "2024-10-29T14:21:43Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/JCTEeql29tc",
    "published": "2024-10-29T14:21:43Z",
    "cc": [],
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
mbin
{
  "content": "<div class=\"content\">\n<p>text</p>\n</div>",
  "html": "<blockquote class=\"section post subject\" data-action=\"notifications:Notification@window-&gt;subject#notification\" data-controller=\"post subject mentions\" id=\"post-17\">\n<header>\n<a class=\"user-inline\" data-action=\"mouseover-&gt;mentions#user_popup mouseout-&gt;mentions#user_popup_out\" data-mentions-username-param=\"@actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\" title=\"@actor@pasture-one-actor\">\n        actor                <i aria-description=\"This user is new (active for less than 30 days)\" class=\"fa-solid fa-leaf new-user-icon\" title=\"This user is new (active for less than 30 days)\"></i>\n</a>\n<span>, </span>\n<a class=\"link-muted\" href=\"/m/random/p/17/text\"><time class=\"timeago\" datetime=\"2024-10-29T14:21:43+00:00\" title=\"2024-10-29T14:21:43+00:00\">1 second ago   \n</time></a>\n</header>\n<figure>\n<a data-action=\"mouseover-&gt;mentions#user_popup mouseout-&gt;mentions#user_popup_out\" data-mentions-username-param=\"actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\">\n<div class=\"no-avatar\"></div>\n</a>\n</figure>\n<div class=\"content\">\n<p>text</p>\n</div>\n<aside class=\"vote\">\n<form action=\"/pf/17?choice=0\" class=\"vote__up\" method=\"post\">\n<button aria-label=\"Favorite\" data-action=\"subject#vote\" title=\"Favorite\" type=\"submit\">\n<span data-subject-target=\"favCounter\">0</span> <span><i aria-hidden=\"true\" class=\"fa-solid fa-arrow-up\"></i></span>\n</button>\n</form>\n</aside>\n<footer>\n<figure>\n<figcaption class=\"hidden glightbox-desc thumb-alt-17-1\">\n                name\n            </figcaption>\n<div class=\"figure-container\">\n<div class=\"figure-thumb\">\n<a class=\"thumb\" data-description=\".thumb-alt-17-1\" href=\"https://mbin.domain.tdl/media/2d/7a/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png\">\n<img alt=\"name\" loading=\"lazy\" src=\"http://mbin/media/cache/resolve/post_thumb/2d/7a/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png\" title=\"name\"/>\n</a>\n</div>\n<div class=\"figure-badge\">\n<div class=\"figure-badge-label\">ALT</div>\n</div>\n</div>\n</figure>\n<menu>\n<li>\n<a class=\"stretched-link\" data-action=\"subject#getForm\" href=\"/m/random/p/17/text/reply\">Reply</a>\n</li>\n<li>\n<form action=\"/pb/17\" method=\"post\">\n<button class=\"boost-link stretched-link\" data-action=\"subject#favourite\" type=\"submit\">\n        Boost <span class=\"hidden\" data-subject-target=\"upvoteCounter\">(0)</span>\n</button>\n</form>\n</li>\n<li class=\"dropdown\">\n<button class=\"stretched-link\" data-subject-target=\"more\">More</button>\n<ul class=\"dropdown__menu\" data-controller=\"clipboard\">\n<li>\n<a class=\"\" data-action=\"subject#getForm\" href=\"/pr/17\">\n                Report\n            </a>\n</li>\n<li>\n<a class=\"\" href=\"/m/random/p/17/text/votes?type=up\">\n                Activity\n            </a>\n</li>\n<li class=\"dropdown__separator\"></li>\n<li>\n<a href=\"http://pasture-one-actor/actor/JCTEeql29tc\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\n                Open original URL\n            </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"http://pasture-one-actor/actor/JCTEeql29tc\" rel=\"nofollow noopener noreferrer\">\n                Copy original URL\n            </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"/m/random/p/17/text\">\n                Copy Mbin URL\n            </a>\n</li>\n</ul>\n</li>\n<li data-subject-target=\"loader\" style=\"display:none\">\n<div class=\"loader\" role=\"status\">\n<span class=\"visually-hidden\">Loading...</span>\n</div>\n</li>\n</menu>\n<div class=\"js-container\" data-subject-target=\"container\">\n</div>\n</footer>\n</blockquote>"
}

Example 4

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/BZLsLxPsuR8",
  "published": "2024-10-29T14:21:45Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/OLpcjng2Pd4",
    "published": "2024-10-29T14:21:45Z",
    "cc": [],
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ]
  }
}
mbin
{
  "content": "<div class=\"content\">\n<p>no comment in attachment</p>\n</div>",
  "html": "<blockquote class=\"section post subject\" data-action=\"notifications:Notification@window-&gt;subject#notification\" data-controller=\"post subject mentions\" id=\"post-18\">\n<header>\n<a class=\"user-inline\" data-action=\"mouseover-&gt;mentions#user_popup mouseout-&gt;mentions#user_popup_out\" data-mentions-username-param=\"@actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\" title=\"@actor@pasture-one-actor\">\n        actor                <i aria-description=\"This user is new (active for less than 30 days)\" class=\"fa-solid fa-leaf new-user-icon\" title=\"This user is new (active for less than 30 days)\"></i>\n</a>\n<span>, </span>\n<a class=\"link-muted\" href=\"/m/random/p/18/no-comment-in-attachment\"><time class=\"timeago\" datetime=\"2024-10-29T14:21:45+00:00\" title=\"2024-10-29T14:21:45+00:00\">1 second ago   \n</time></a>\n</header>\n<figure>\n<a data-action=\"mouseover-&gt;mentions#user_popup mouseout-&gt;mentions#user_popup_out\" data-mentions-username-param=\"actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\">\n<div class=\"no-avatar\"></div>\n</a>\n</figure>\n<div class=\"content\">\n<p>no comment in attachment</p>\n</div>\n<aside class=\"vote\">\n<form action=\"/pf/18?choice=0\" class=\"vote__up\" method=\"post\">\n<button aria-label=\"Favorite\" data-action=\"subject#vote\" title=\"Favorite\" type=\"submit\">\n<span data-subject-target=\"favCounter\">0</span> <span><i aria-hidden=\"true\" class=\"fa-solid fa-arrow-up\"></i></span>\n</button>\n</form>\n</aside>\n<footer>\n<figure>\n<figcaption class=\"hidden glightbox-desc thumb-alt-18-1\">\n                name\n            </figcaption>\n<div class=\"figure-container\">\n<div class=\"figure-thumb\">\n<a class=\"thumb\" data-description=\".thumb-alt-18-1\" href=\"https://mbin.domain.tdl/media/2d/7a/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png\">\n<img alt=\"name\" loading=\"lazy\" src=\"http://mbin/media/cache/resolve/post_thumb/2d/7a/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png\" title=\"name\"/>\n</a>\n</div>\n<div class=\"figure-badge\">\n<div class=\"figure-badge-label\">ALT</div>\n</div>\n</div>\n</figure>\n<menu>\n<li>\n<a class=\"stretched-link\" data-action=\"subject#getForm\" href=\"/m/random/p/18/no-comment-in-attachment/reply\">Reply</a>\n</li>\n<li>\n<form action=\"/pb/18\" method=\"post\">\n<button class=\"boost-link stretched-link\" data-action=\"subject#favourite\" type=\"submit\">\n        Boost <span class=\"hidden\" data-subject-target=\"upvoteCounter\">(0)</span>\n</button>\n</form>\n</li>\n<li class=\"dropdown\">\n<button class=\"stretched-link\" data-subject-target=\"more\">More</button>\n<ul class=\"dropdown__menu\" data-controller=\"clipboard\">\n<li>\n<a class=\"\" data-action=\"subject#getForm\" href=\"/pr/18\">\n                Report\n            </a>\n</li>\n<li>\n<a class=\"\" href=\"/m/random/p/18/no-comment-in-attachment/votes?type=up\">\n                Activity\n            </a>\n</li>\n<li class=\"dropdown__separator\"></li>\n<li>\n<a href=\"http://pasture-one-actor/actor/OLpcjng2Pd4\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\n                Open original URL\n            </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"http://pasture-one-actor/actor/OLpcjng2Pd4\" rel=\"nofollow noopener noreferrer\">\n                Copy original URL\n            </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"/m/random/p/18/no-comment-in-attachment\">\n                Copy Mbin URL\n            </a>\n</li>\n</ul>\n</li>\n<li data-subject-target=\"loader\" style=\"display:none\">\n<div class=\"loader\" role=\"status\">\n<span class=\"visually-hidden\">Loading...</span>\n</div>\n</li>\n</menu>\n<div class=\"js-container\" data-subject-target=\"container\">\n</div>\n</footer>\n</blockquote>"
}