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/drQ3WIW85_o",
  "published": "2025-03-07T11:57:13Z",
  "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/eKL9Ej4Asrs",
    "published": "2025-03-07T11:57:13Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JNR7EYD8VBJPD30KD7G47TAK",
  "created_at": "2025-03-07T11:57:13.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/eKL9Ej4Asrs",
  "url": "http://pasture-one-actor/actor/eKL9Ej4Asrs",
  "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": "01JNR7C9NA53PSCCZ08Q119W53",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2025-03-07T11:55:46.231Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 35,
    "last_status_at": "2025-03-07T11:57:13.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JNR7EYJ88M4NDJX2SYY971N6",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EYJ88M4NDJX2SYY971N6.png",
      "text_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EYJ88M4NDJX2SYY971N6.png",
      "preview_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/small/01JNR7EYJ88M4NDJX2SYY971N6.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": "L19QF7-sfQ-s-sj[fQj[fQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "017HKBNB5PFZAA994QTJ40SBKP",
      "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/oKuGBX13QNc",
  "published": "2025-03-07T11:57:13Z",
  "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/VLhXU9mtdYo",
    "published": "2025-03-07T11:57:13Z",
    "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": "01JNR7EYD8HWFB9X5RZQTAZ9AC",
  "created_at": "2025-03-07T11:57:13.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/VLhXU9mtdYo",
  "url": "http://pasture-one-actor/actor/VLhXU9mtdYo",
  "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": "01JNR7C9NA53PSCCZ08Q119W53",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2025-03-07T11:55:46.231Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 36,
    "last_status_at": "2025-03-07T11:57:13.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JNR7EZ6T9GPWN5Z0HA88SD3T",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EZ6T9GPWN5Z0HA88SD3T.png",
      "text_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EZ6T9GPWN5Z0HA88SD3T.png",
      "preview_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/small/01JNR7EZ6T9GPWN5Z0HA88SD3T.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": "L5G^p2.gfQ.g.gkBfQkBfQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "017HKBNB5PFZAA994QTJ40SBKP",
      "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/MzC_AWkwwgc",
  "published": "2025-03-07T11:57:14Z",
  "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/m8irvCO3ozI",
    "published": "2025-03-07T11:57:14Z",
    "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": "01JNR7EZCG0RJ0F3GFCKNHRRCX",
  "created_at": "2025-03-07T11:57:14.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/m8irvCO3ozI",
  "url": "http://pasture-one-actor/actor/m8irvCO3ozI",
  "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": "01JNR7C9NA53PSCCZ08Q119W53",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2025-03-07T11:55:46.231Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 37,
    "last_status_at": "2025-03-07T11:57:14.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JNR7EZVGCDF7H8QG6K5ACR2D",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EZVGCDF7H8QG6K5ACR2D.png",
      "text_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7EZVGCDF7H8QG6K5ACR2D.png",
      "preview_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/small/01JNR7EZVGCDF7H8QG6K5ACR2D.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": "017HKBNB5PFZAA994QTJ40SBKP",
      "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/ul5ikhLMRpQ",
  "published": "2025-03-07T11:57:15Z",
  "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/7hCcwr3jmVs",
    "published": "2025-03-07T11:57:15Z",
    "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": "01JNR7F0BRDX10JX5CRBDT12AK",
  "created_at": "2025-03-07T11:57:15.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/7hCcwr3jmVs",
  "url": "http://pasture-one-actor/actor/7hCcwr3jmVs",
  "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": "01JNR7C9NA53PSCCZ08Q119W53",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2025-03-07T11:55:46.231Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon2.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 38,
    "last_status_at": "2025-03-07T11:57:15.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JNR7F0GHP18YYS21DRG493KB",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7F0GHP18YYS21DRG493KB.png",
      "text_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/original/01JNR7F0GHP18YYS21DRG493KB.png",
      "preview_url": "http://gotosocial/fileserver/01JNR7C9NA53PSCCZ08Q119W53/attachment/small/01JNR7F0GHP18YYS21DRG493KB.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": "017HKBNB5PFZAA994QTJ40SBKP",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}