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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/A6aDhcjdkeA",
  "published": "2024-09-26T10:06:52Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/NU_Hg9x83Dc",
    "published": "2024-09-26T10:06:52Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    }
  }
}
mitra
{
  "id": "01922dcc-3c55-9d0b-325f-76b4ae5ea2e8",
  "uri": "http://pasture-one-actor/actor/NU_Hg9x83Dc",
  "url": "http://pasture-one-actor/actor/NU_Hg9x83Dc",
  "created_at": "2024-09-26T10:06:52Z",
  "edited_at": null,
  "account": {
    "id": "01922dca-83fa-0581-4e16-cc46d8b47921",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2024-09-26T10:04:59.770176Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 23,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "no description",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "media_attachments": [
    {
      "id": "01922dcc-3c50-bd5c-4fb0-dc44642953f4",
      "type": "image",
      "url": "http://mitra/media/f3f42a4aaa9302aced2b68826e5020a6398f3c07cca226e9a0d7961ad0513d2e.png",
      "preview_url": "http://mitra/media/f3f42a4aaa9302aced2b68826e5020a6398f3c07cca226e9a0d7961ad0513d2e.png",
      "description": null
    }
  ],
  "mentions": [
    {
      "id": "01922dc9-29f8-a958-3f1b-c0338b549284",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/Rvh1H4B97ZE",
  "published": "2024-09-26T10:06:52Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/iNCZvm7RdSg",
    "published": "2024-09-26T10:06:52Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}
mitra
{
  "id": "01922dcc-423b-9433-d5f7-6919ef3d49be",
  "uri": "http://pasture-one-actor/actor/iNCZvm7RdSg",
  "url": "http://pasture-one-actor/actor/iNCZvm7RdSg",
  "created_at": "2024-09-26T10:06:52Z",
  "edited_at": null,
  "account": {
    "id": "01922dca-83fa-0581-4e16-cc46d8b47921",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2024-09-26T10:04:59.770176Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 24,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "text",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "media_attachments": [
    {
      "id": "01922dcc-4233-6225-83e8-44be562d9cbd",
      "type": "image",
      "url": "http://mitra/media/72e52edcac41efa47d8b637646b5e14a586a021cbe6d673602f92015193edb1e.png",
      "preview_url": "http://mitra/media/72e52edcac41efa47d8b637646b5e14a586a021cbe6d673602f92015193edb1e.png",
      "description": "name"
    }
  ],
  "mentions": [
    {
      "id": "01922dc9-29f8-a958-3f1b-c0338b549284",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/kFfmwjx-URo",
  "published": "2024-09-26T10:06:54Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/XQG07Vvpv2c",
    "published": "2024-09-26T10:06:54Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
mitra
{
  "id": "01922dcc-480b-48e3-b776-38c3813d3fd7",
  "uri": "http://pasture-one-actor/actor/XQG07Vvpv2c",
  "url": "http://pasture-one-actor/actor/XQG07Vvpv2c",
  "created_at": "2024-09-26T10:06:54Z",
  "edited_at": null,
  "account": {
    "id": "01922dca-83fa-0581-4e16-cc46d8b47921",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2024-09-26T10:04:59.770176Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 25,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "text",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "media_attachments": [
    {
      "id": "01922dcc-4808-b424-b91b-e2a754d91a78",
      "type": "image",
      "url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "description": "name"
    }
  ],
  "mentions": [
    {
      "id": "01922dc9-29f8-a958-3f1b-c0338b549284",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/qSzYWFn_AXw",
  "published": "2024-09-26T10:06:55Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/epOxYjy1UTE",
    "published": "2024-09-26T10:06:55Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ]
  }
}
mitra
{
  "id": "01922dcc-4e11-73cb-b581-f4311645f271",
  "uri": "http://pasture-one-actor/actor/epOxYjy1UTE",
  "url": "http://pasture-one-actor/actor/epOxYjy1UTE",
  "created_at": "2024-09-26T10:06:55Z",
  "edited_at": null,
  "account": {
    "id": "01922dca-83fa-0581-4e16-cc46d8b47921",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2024-09-26T10:04:59.770176Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 26,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "no comment in attachment",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "media_attachments": [
    {
      "id": "01922dcc-4e08-10f6-a1dd-eeb2a4a7ddb5",
      "type": "image",
      "url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "description": null
    }
  ],
  "mentions": [
    {
      "id": "01922dc9-29f8-a958-3f1b-c0338b549284",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}