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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/XBuBzSvjWLY",
  "published": "2024-10-26T08:49:54Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/DH_cT_W4fF0",
    "published": "2024-10-26T08:49:54Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB4092TGAWNVZCMN64PAX07Z",
  "created_at": "2024-10-26T08:49:54.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/DH_cT_W4fF0",
  "url": "http://pasture-one-actor/actor/DH_cT_W4fF0",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "no description",
  "reblog": null,
  "account": {
    "id": "01JB406J7N5Z0WY56CB5KSGDGA",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-26T08:48:31.488Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 30,
    "last_status_at": "2024-10-26T08:49:54.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JB4093SCTS54SWK8Q68CRJ8Y",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4093SCTS54SWK8Q68CRJ8Y.png",
      "text_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4093SCTS54SWK8Q68CRJ8Y.png",
      "preview_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/small/01JB4093SCTS54SWK8Q68CRJ8Y.jpg",
      "remote_url": "http://pasture-one-actor/images/100.png",
      "preview_remote_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1
        },
        "focus": {
          "x": 0,
          "y": 0
        }
      },
      "description": null,
      "blurhash": "L74Sn2l*fQl*l*f*fQf*fQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "01N304667NDPR3W9JH5AD5H4SW",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/Myj8u8uzyiI",
  "published": "2024-10-26T08:49:55Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/M9birmV0n6k",
    "published": "2024-10-26T08:49:55Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB4093SRM3KC338PFRH1EQ9M",
  "created_at": "2024-10-26T08:49:55.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/M9birmV0n6k",
  "url": "http://pasture-one-actor/actor/M9birmV0n6k",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text",
  "reblog": null,
  "account": {
    "id": "01JB406J7N5Z0WY56CB5KSGDGA",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-26T08:48:31.488Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 31,
    "last_status_at": "2024-10-26T08:49:55.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JB4094EF875SBRNCPJBYA003",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4094EF875SBRNCPJBYA003.png",
      "text_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4094EF875SBRNCPJBYA003.png",
      "preview_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/small/01JB4094EF875SBRNCPJBYA003.jpg",
      "remote_url": "http://pasture-one-actor/images/100.png",
      "preview_remote_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1
        },
        "focus": {
          "x": 0,
          "y": 0
        }
      },
      "description": "summary",
      "blurhash": "L1Ee_i~XfQ~X~XoffQoffQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "01N304667NDPR3W9JH5AD5H4SW",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/-Mk2HiLIno0",
  "published": "2024-10-26T08:49:56Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/eT52aGL7VaI",
    "published": "2024-10-26T08:49:56Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB4094S0MRCWR3RJX06S2NEV",
  "created_at": "2024-10-26T08:49:56.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/eT52aGL7VaI",
  "url": "http://pasture-one-actor/actor/eT52aGL7VaI",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text",
  "reblog": null,
  "account": {
    "id": "01JB406J7N5Z0WY56CB5KSGDGA",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-26T08:48:31.488Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 32,
    "last_status_at": "2024-10-26T08:49:56.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JB40952ZCBA8S3A7FR02EN6P",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB40952ZCBA8S3A7FR02EN6P.png",
      "text_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB40952ZCBA8S3A7FR02EN6P.png",
      "preview_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/small/01JB40952ZCBA8S3A7FR02EN6P.jpg",
      "remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
      "preview_remote_url": null,
      "meta": {
        "original": {
          "width": 1548,
          "height": 1548,
          "size": "1548x1548",
          "aspect": 1
        },
        "small": {
          "width": 512,
          "height": 512,
          "size": "512x512",
          "aspect": 1
        },
        "focus": {
          "x": 0,
          "y": 0
        }
      },
      "description": "name",
      "blurhash": "LIB{x~.}9Fcn}gnOEUxBDlK[N1wi"
    }
  ],
  "mentions": [
    {
      "id": "01N304667NDPR3W9JH5AD5H4SW",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/UmQPxXOrKTY",
  "published": "2024-10-26T08:49:56Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/oF-GzctdGyA",
    "published": "2024-10-26T08:49:56Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB4094S0DPARTNKXRESS9K6A",
  "created_at": "2024-10-26T08:49:56.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/oF-GzctdGyA",
  "url": "http://pasture-one-actor/actor/oF-GzctdGyA",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "no comment in attachment",
  "reblog": null,
  "account": {
    "id": "01JB406J7N5Z0WY56CB5KSGDGA",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-26T08:48:31.488Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon6.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 33,
    "last_status_at": "2024-10-26T08:49:56.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JB4095QVFCRAH0TVEPW25H2N",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4095QVFCRAH0TVEPW25H2N.png",
      "text_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/original/01JB4095QVFCRAH0TVEPW25H2N.png",
      "preview_url": "http://gotosocial/fileserver/01JB406J7N5Z0WY56CB5KSGDGA/attachment/small/01JB4095QVFCRAH0TVEPW25H2N.jpg",
      "remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
      "preview_remote_url": null,
      "meta": {
        "original": {
          "width": 1548,
          "height": 1548,
          "size": "1548x1548",
          "aspect": 1
        },
        "small": {
          "width": 512,
          "height": 512,
          "size": "512x512",
          "aspect": 1
        },
        "focus": {
          "x": 0,
          "y": 0
        }
      },
      "description": null,
      "blurhash": "LIB{x~.}9Fcn}gnOEUxBDlK[N1wi"
    }
  ],
  "mentions": [
    {
      "id": "01N304667NDPR3W9JH5AD5H4SW",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}