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/XU1Sx8PbxFA",
  "published": "2024-12-02T18:41:02Z",
  "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/U8h9Q40OjmI",
    "published": "2024-12-02T18:41:02Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JE4AT2HG022K4Z2Y0TN4R62W",
  "created_at": "2024-12-02T18:41:02.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/U8h9Q40OjmI",
  "url": "http://pasture-one-actor/actor/U8h9Q40OjmI",
  "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": "01JE4AQGWFWGH142XSSDT7BPG6",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-12-02T18:39:38.399Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.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-12-02T18:41:02.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JE4AT318KAAJYM1AK2SFRH6D",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT318KAAJYM1AK2SFRH6D.png",
      "text_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT318KAAJYM1AK2SFRH6D.png",
      "preview_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/small/01JE4AT318KAAJYM1AK2SFRH6D.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": "L8ETqOxNfQxNxNjvfQjvfQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "01GQVV7KF7MBTWYN6T68Y7A1XH",
      "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/bC35gqSxIOA",
  "published": "2024-12-02T18:41:03Z",
  "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/AAg1xDqAnHs",
    "published": "2024-12-02T18:41:03Z",
    "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": "01JE4AT3GRBB3DTB3BGYSJQ94Q",
  "created_at": "2024-12-02T18:41:03.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/AAg1xDqAnHs",
  "url": "http://pasture-one-actor/actor/AAg1xDqAnHs",
  "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": "01JE4AQGWFWGH142XSSDT7BPG6",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-12-02T18:39:38.399Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.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-12-02T18:41:03.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JE4AT3P0EPBCR0319E53WMD3",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT3P0EPBCR0319E53WMD3.png",
      "text_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT3P0EPBCR0319E53WMD3.png",
      "preview_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/small/01JE4AT3P0EPBCR0319E53WMD3.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": "L15WZ,svfQsvsvjvfQjvfQfQfQfQ"
    }
  ],
  "mentions": [
    {
      "id": "01GQVV7KF7MBTWYN6T68Y7A1XH",
      "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/Zq7ns4Tqx3Q",
  "published": "2024-12-02T18:41:03Z",
  "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/uG4e7kfy8HA",
    "published": "2024-12-02T18:41:03Z",
    "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": "01JE4AT3GRB3KK2FPKD0X8X7X7",
  "created_at": "2024-12-02T18:41:03.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/uG4e7kfy8HA",
  "url": "http://pasture-one-actor/actor/uG4e7kfy8HA",
  "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": "01JE4AQGWFWGH142XSSDT7BPG6",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-12-02T18:39:38.399Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.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-12-02T18:41:03.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JE4AT4B1CCATQVK6YXTQMADT",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT4B1CCATQVK6YXTQMADT.png",
      "text_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT4B1CCATQVK6YXTQMADT.png",
      "preview_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/small/01JE4AT4B1CCATQVK6YXTQMADT.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": "01GQVV7KF7MBTWYN6T68Y7A1XH",
      "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/d9Ivo8Dic8M",
  "published": "2024-12-02T18:41:04Z",
  "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/Uf9p4JUbRu4",
    "published": "2024-12-02T18:41:04Z",
    "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": "01JE4AT4G0VX4645VH040YTXNJ",
  "created_at": "2024-12-02T18:41:04.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/Uf9p4JUbRu4",
  "url": "http://pasture-one-actor/actor/Uf9p4JUbRu4",
  "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": "01JE4AQGWFWGH142XSSDT7BPG6",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-12-02T18:39:38.399Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.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-12-02T18:41:04.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "01JE4AT4ZRVB701JKGZWHBWPS8",
      "type": "image",
      "url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT4ZRVB701JKGZWHBWPS8.png",
      "text_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/original/01JE4AT4ZRVB701JKGZWHBWPS8.png",
      "preview_url": "http://gotosocial/fileserver/01JE4AQGWFWGH142XSSDT7BPG6/attachment/small/01JE4AT4ZRVB701JKGZWHBWPS8.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": "01GQVV7KF7MBTWYN6T68Y7A1XH",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}