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

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture_one_actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/9I5y4bSuSyY",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/U0375hu_jsU",
    "published": "2024-03-06T17:55:29Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9qjnys88pbvn000s",
  "uri": "http://pasture_one_actor/actor/U0375hu_jsU",
  "url": "http://pasture_one_actor/actor/U0375hu_jsU",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 22,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>no description</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "no description",
  "created_at": "2024-03-06T17:55:29.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [
    {
      "id": "9qjnysrwpbvn000r",
      "type": "image",
      "url": "http://pasture_one_actor/images/100.png",
      "remote_url": "http://pasture_one_actor/images/100.png",
      "preview_url": "http://pasture_one_actor/images/100.png",
      "text_url": "http://pasture_one_actor/images/100.png",
      "meta": {
        "width": 40,
        "height": 40
      },
      "description": null,
      "blurhash": "e2BPYJyZfQyZfQyZj[fQj[fQfQfQfQfQfQyZj[fQj[fQfQfQfQfQfQ"
    }
  ],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}
```

Example 2

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture_one_actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/yyEu12c_h2U",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/1LBP5mp4tGQ",
    "published": "2024-03-06T17:55:31Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9qjnytrspbvn000u",
  "uri": "http://pasture_one_actor/actor/1LBP5mp4tGQ",
  "url": "http://pasture_one_actor/actor/1LBP5mp4tGQ",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 23,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-06T17:55:31.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [
    {
      "id": "9qjnyugxpbvn000t",
      "type": "image",
      "url": "http://pasture_one_actor/images/100.png",
      "remote_url": "http://pasture_one_actor/images/100.png",
      "preview_url": "http://pasture_one_actor/images/100.png",
      "text_url": "http://pasture_one_actor/images/100.png",
      "meta": {
        "width": 40,
        "height": 40
      },
      "description": "name",
      "blurhash": "e14LJtomfQomfQomfRfQfRfQfQfQfQfQfQomfRfQfRfQfQfQfQfQfQ"
    }
  ],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}
```

Example 3

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture_one_actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/urov2Sz_B1c",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/zCzS98SLxlY",
    "published": "2024-03-06T17:55:34Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
```


```json title="sharkey"
{
  "id": "9qjnyw34pbvn000w",
  "uri": "http://pasture_one_actor/actor/zCzS98SLxlY",
  "url": "http://pasture_one_actor/actor/zCzS98SLxlY",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 24,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-06T17:55:34.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [
    {
      "id": "9qjnyw8opbvn000v",
      "type": "image",
      "url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "remote_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "preview_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "text_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "meta": {
        "width": 1548,
        "height": 1548
      },
      "description": "name",
      "blurhash": "eQF5X3.}4.YJIm}ynOEUxBt89IK[N1xI-T9,TJRPX3$#ASNFo}aPtP"
    }
  ],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}
```

Example 4

```json title="activity"
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture_one_actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/9qjnvr5wi3ew0001"
  ],
  "id": "http://pasture_one_actor/actor/24dkXUP7vSo",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qjnvr5wi3ew0001"
    ],
    "id": "http://pasture_one_actor/actor/G2lLvm06PQ8",
    "published": "2024-03-06T17:55:36Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png"
      }
    ]
  }
}
```


```json title="sharkey"
{
  "id": "9qjnyxmopbvn000x",
  "uri": "http://pasture_one_actor/actor/G2lLvm06PQ8",
  "url": "http://pasture_one_actor/actor/G2lLvm06PQ8",
  "account": {
    "id": "9qjnxfoapbvn0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-06T17:54:26.074Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 25,
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>no comment in attachment</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "no comment in attachment",
  "created_at": "2024-03-06T17:55:36.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [
    {
      "id": "9qjnyw8opbvn000v",
      "type": "image",
      "url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "remote_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "preview_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "text_url": "http://pasture_one_actor/assets/FediverseLogo.png",
      "meta": {
        "width": 1548,
        "height": 1548
      },
      "description": "name",
      "blurhash": "eQF5X3.}4.YJIm}ynOEUxBt89IK[N1xI-T9,TJRPX3$#ASNFo}aPtP"
    }
  ],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}
```