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/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/C0d-ZXRvB0U",
  "published": "2024-12-02T19:11:01Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/jCnst6c5fjA",
    "published": "2024-12-02T19:11:01Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    }
  }
}
misskey
{
  "id": "a1ayzrt4pltg000m",
  "createdAt": "2024-12-02T19:11:01.000Z",
  "userId": "a1ayvetbpltg0002",
  "user": {
    "id": "a1ayvetbpltg0002",
    "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": [
    "a1ayzsnwpltg000l"
  ],
  "files": [
    {
      "id": "a1ayzsnwpltg000l",
      "createdAt": "2024-12-02T19:11:02.108Z",
      "name": "100.png",
      "type": "image/png",
      "md5": "feb729bc4b32ef0e6dc7e10bbb7a2cd1",
      "size": 0,
      "isSensitive": false,
      "blurhash": "e1J{d-|_fQ|_fQ|_jtfQjtfQfQfQfQfQfQ|_jtfQjtfQfQfQfQfQfQ",
      "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": "a1ayvetbpltg0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/jCnst6c5fjA",
  "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/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/mBjY3ZKfr34",
  "published": "2024-12-02T19:11:02Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/SzrQKa7-bw0",
    "published": "2024-12-02T19:11:02Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}
misskey
{
  "id": "a1ayzskwpltg000o",
  "createdAt": "2024-12-02T19:11:02.000Z",
  "userId": "a1ayvetbpltg0002",
  "user": {
    "id": "a1ayvetbpltg0002",
    "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": [
    "a1ayzt6wpltg000n"
  ],
  "files": [
    {
      "id": "a1ayzt6wpltg000n",
      "createdAt": "2024-12-02T19:11:02.792Z",
      "name": "100.png",
      "type": "image/png",
      "md5": "6afea01c5b821d493f9dd28a5193e699",
      "size": 0,
      "isSensitive": false,
      "blurhash": "e1Da,Y-afQ-afQ-ajufQjufQfQfQfQfQfQ-ajufQjufQfQfQfQfQfQ",
      "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": "a1ayvetbpltg0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/SzrQKa7-bw0",
  "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/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/NHJigRlQL3g",
  "published": "2024-12-02T19:11:03Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/6JaS9-SOtQI",
    "published": "2024-12-02T19:11:03Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
misskey
{
  "id": "a1ayztcopltg000q",
  "createdAt": "2024-12-02T19:11:03.000Z",
  "userId": "a1ayvetbpltg0002",
  "user": {
    "id": "a1ayvetbpltg0002",
    "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": [
    "a1ayzts4pltg000p"
  ],
  "files": [
    {
      "id": "a1ayzts4pltg000p",
      "createdAt": "2024-12-02T19:11:03.556Z",
      "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": "a1ayvetbpltg0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/6JaS9-SOtQI",
  "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/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/vRBxQV2WVdY",
  "published": "2024-12-02T19:11:03Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/_18SUqB3eKE",
    "published": "2024-12-02T19:11:03Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ]
  }
}
misskey
{
  "id": "a1ayztcopltg000r",
  "createdAt": "2024-12-02T19:11:03.000Z",
  "userId": "a1ayvetbpltg0002",
  "user": {
    "id": "a1ayvetbpltg0002",
    "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": [
    "a1ayzts4pltg000p"
  ],
  "files": [
    {
      "id": "a1ayzts4pltg000p",
      "createdAt": "2024-12-02T19:11:03.556Z",
      "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": "a1ayvetbpltg0002",
      "user": null
    }
  ],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/_18SUqB3eKE",
  "clippedCount": 0
}