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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://misskey/users/9zsmdhr9ioj40001"
  ],
  "id": "http://pasture-one-actor/actor/ZoXjxUIaGjI",
  "published": "2024-10-25T18:20:46Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/9zsmdhr9ioj40001"
    ],
    "id": "http://pasture-one-actor/actor/1gbcsT8s78c",
    "published": "2024-10-25T18:20:46Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    }
  }
}
misskey
{
  "id": "9zsmgs34hl7y000y",
  "createdAt": "2024-10-25T18:20:46.000Z",
  "userId": "9zsmf57vhl7y0002",
  "user": {
    "id": "9zsmf57vhl7y0002",
    "name": "Test Actor",
    "username": "actor",
    "host": "pasture-one-actor",
    "avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
    "avatarBlurhash": null,
    "avatarDecorations": [],
    "isBot": false,
    "isCat": false,
    "instance": {
      "name": null,
      "softwareName": null,
      "softwareVersion": null,
      "iconUrl": null,
      "faviconUrl": null,
      "themeColor": null
    },
    "emojis": {},
    "onlineStatus": "unknown"
  },
  "text": "no description",
  "cw": null,
  "visibility": "public",
  "localOnly": false,
  "reactionAcceptance": null,
  "renoteCount": 0,
  "repliesCount": 0,
  "reactionCount": 0,
  "reactions": {},
  "reactionEmojis": {},
  "emojis": {},
  "fileIds": [
    "9zsmgs8ohl7y000x"
  ],
  "files": [
    {
      "id": "9zsmgs8ohl7y000x",
      "createdAt": "2024-10-25T18:20:46.200Z",
      "name": "100.png",
      "type": "image/png",
      "md5": "6700d378de9ae667b82a1e77e97b10e6",
      "size": 0,
      "isSensitive": false,
      "blurhash": "e3Qcr+~ifQ~ifQ~ij@fQj@fQfQfQfQfQfQ~ij@fQj@fQfQfQfQfQfQ",
      "properties": {
        "width": 40,
        "height": 40
      },
      "url": "http://pasture-one-actor/images/100.png",
      "thumbnailUrl": "http://pasture-one-actor/images/100.png",
      "comment": null,
      "folderId": null,
      "folder": null,
      "userId": "9zsmf57vhl7y0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/1gbcsT8s78c",
  "clippedCount": 0
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://misskey/users/9zsmdhr9ioj40001"
  ],
  "id": "http://pasture-one-actor/actor/6Z1TLmyqvKo",
  "published": "2024-10-25T18:20:46Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/9zsmdhr9ioj40001"
    ],
    "id": "http://pasture-one-actor/actor/c0RxpUTQDTo",
    "published": "2024-10-25T18:20:46Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}
misskey
{
  "id": "9zsmgs34hl7y0010",
  "createdAt": "2024-10-25T18:20:46.000Z",
  "userId": "9zsmf57vhl7y0002",
  "user": {
    "id": "9zsmf57vhl7y0002",
    "name": "Test Actor",
    "username": "actor",
    "host": "pasture-one-actor",
    "avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
    "avatarBlurhash": null,
    "avatarDecorations": [],
    "isBot": false,
    "isCat": false,
    "instance": {
      "name": null,
      "softwareName": null,
      "softwareVersion": null,
      "iconUrl": null,
      "faviconUrl": null,
      "themeColor": null
    },
    "emojis": {},
    "onlineStatus": "unknown"
  },
  "text": "text",
  "cw": null,
  "visibility": "public",
  "localOnly": false,
  "reactionAcceptance": null,
  "renoteCount": 0,
  "repliesCount": 0,
  "reactionCount": 0,
  "reactions": {},
  "reactionEmojis": {},
  "emojis": {},
  "fileIds": [
    "9zsmgssbhl7y000z"
  ],
  "files": [
    {
      "id": "9zsmgssbhl7y000z",
      "createdAt": "2024-10-25T18:20:46.907Z",
      "name": "100.png",
      "type": "image/png",
      "md5": "75e45e4b4d09cfea4216c61f499f58ac",
      "size": 0,
      "isSensitive": false,
      "blurhash": "e3F+SY%_fQ%_fQ%_j[fQj[fQfQfQfQfQfQ%_j[fQj[fQfQfQfQfQfQ",
      "properties": {
        "width": 40,
        "height": 40
      },
      "url": "http://pasture-one-actor/images/100.png",
      "thumbnailUrl": "http://pasture-one-actor/images/100.png",
      "comment": "name",
      "folderId": null,
      "folder": null,
      "userId": "9zsmf57vhl7y0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/c0RxpUTQDTo",
  "clippedCount": 0
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://misskey/users/9zsmdhr9ioj40001"
  ],
  "id": "http://pasture-one-actor/actor/e3bAiEIqK24",
  "published": "2024-10-25T18:20:47Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/9zsmdhr9ioj40001"
    ],
    "id": "http://pasture-one-actor/actor/IhSf0S4KpwM",
    "published": "2024-10-25T18:20:47Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
misskey
{
  "id": "9zsmgsuwhl7y0012",
  "createdAt": "2024-10-25T18:20:47.000Z",
  "userId": "9zsmf57vhl7y0002",
  "user": {
    "id": "9zsmf57vhl7y0002",
    "name": "Test Actor",
    "username": "actor",
    "host": "pasture-one-actor",
    "avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
    "avatarBlurhash": null,
    "avatarDecorations": [],
    "isBot": false,
    "isCat": false,
    "instance": {
      "name": null,
      "softwareName": null,
      "softwareVersion": null,
      "iconUrl": null,
      "faviconUrl": null,
      "themeColor": null
    },
    "emojis": {},
    "onlineStatus": "unknown"
  },
  "text": "text",
  "cw": null,
  "visibility": "public",
  "localOnly": false,
  "reactionAcceptance": null,
  "renoteCount": 0,
  "repliesCount": 0,
  "reactionCount": 0,
  "reactions": {},
  "reactionEmojis": {},
  "emojis": {},
  "fileIds": [
    "9zsmgtdhhl7y0011"
  ],
  "files": [
    {
      "id": "9zsmgtdhhl7y0011",
      "createdAt": "2024-10-25T18:20:47.669Z",
      "name": "FediverseLogo.png",
      "type": "image/png",
      "md5": "85e7feae66363e9e200570a28b0cf20a",
      "size": 0,
      "isSensitive": false,
      "blurhash": "eQE_?c.}4.YJM^}fi{EVw[xu9JK[M~xI-T9+TJRPX2$$E]NFo}j1tO",
      "properties": {
        "width": 1548,
        "height": 1548
      },
      "url": "http://pasture-one-actor/assets/FediverseLogo.png",
      "thumbnailUrl": "http://pasture-one-actor/assets/FediverseLogo.png",
      "comment": "name",
      "folderId": null,
      "folder": null,
      "userId": "9zsmf57vhl7y0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/IhSf0S4KpwM",
  "clippedCount": 0
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://misskey/users/9zsmdhr9ioj40001"
  ],
  "id": "http://pasture-one-actor/actor/Fxaca3QDO0A",
  "published": "2024-10-25T18:20:48Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/9zsmdhr9ioj40001"
    ],
    "id": "http://pasture-one-actor/actor/zv76jLvrpbw",
    "published": "2024-10-25T18:20:48Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ]
  }
}
misskey
{
  "id": "9zsmgtmohl7y0013",
  "createdAt": "2024-10-25T18:20:48.000Z",
  "userId": "9zsmf57vhl7y0002",
  "user": {
    "id": "9zsmf57vhl7y0002",
    "name": "Test Actor",
    "username": "actor",
    "host": "pasture-one-actor",
    "avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
    "avatarBlurhash": null,
    "avatarDecorations": [],
    "isBot": false,
    "isCat": false,
    "instance": {
      "name": null,
      "softwareName": null,
      "softwareVersion": null,
      "iconUrl": null,
      "faviconUrl": null,
      "themeColor": null
    },
    "emojis": {},
    "onlineStatus": "unknown"
  },
  "text": "no comment in attachment",
  "cw": null,
  "visibility": "public",
  "localOnly": false,
  "reactionAcceptance": null,
  "renoteCount": 0,
  "repliesCount": 0,
  "reactionCount": 0,
  "reactions": {},
  "reactionEmojis": {},
  "emojis": {},
  "fileIds": [
    "9zsmgtdhhl7y0011"
  ],
  "files": [
    {
      "id": "9zsmgtdhhl7y0011",
      "createdAt": "2024-10-25T18:20:47.669Z",
      "name": "FediverseLogo.png",
      "type": "image/png",
      "md5": "85e7feae66363e9e200570a28b0cf20a",
      "size": 0,
      "isSensitive": false,
      "blurhash": "eQE_?c.}4.YJM^}fi{EVw[xu9JK[M~xI-T9+TJRPX2$$E]NFo}j1tO",
      "properties": {
        "width": 1548,
        "height": 1548
      },
      "url": "http://pasture-one-actor/assets/FediverseLogo.png",
      "thumbnailUrl": "http://pasture-one-actor/assets/FediverseLogo.png",
      "comment": "name",
      "folderId": null,
      "folder": null,
      "userId": "9zsmf57vhl7y0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/zv76jLvrpbw",
  "clippedCount": 0
}