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/nkKkNR7OJaI",
  "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/iJP-BRuybV4",
    "published": "2024-03-06T18:20:28Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png"
    }
  }
}
mitra
{
  "id": "018e14fe-d81e-5ac1-66e8-d6ad83ce0c6b",
  "uri": "http://pasture_one_actor/actor/iJP-BRuybV4",
  "url": null,
  "created_at": "2024-03-06T18:20:28Z",
  "edited_at": null,
  "account": {
    "id": "018e14f5-f041-23ce-02af-d040b908c232",
    "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-03-06T18:10:45.953735Z",
    "note": "",
    "avatar": null,
    "header": null,
    "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": "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": "018e14fe-d817-8242-500c-0c7baf881569",
      "type": "image",
      "url": "http://mitra/media/120ff2ac49401e5d04dae8e4d64d1e34c514f1748cf47e8e072fadadd3978043.png",
      "preview_url": "http://mitra/media/120ff2ac49401e5d04dae8e4d64d1e34c514f1748cf47e8e072fadadd3978043.png",
      "description": null
    }
  ],
  "mentions": [
    {
      "id": "018e14f4-d873-ad2f-57db-aa3652520cfb",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "ipfs_cid": null,
  "token_id": null,
  "token_tx_id": 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/j81LnmC3pSc",
  "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/8oPN0SkKM00",
    "published": "2024-03-06T18:20:48Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    }
  }
}
mitra
{
  "id": "018e14ff-39c1-3e21-8091-f593113184ad",
  "uri": "http://pasture_one_actor/actor/8oPN0SkKM00",
  "url": null,
  "created_at": "2024-03-06T18:20:48Z",
  "edited_at": null,
  "account": {
    "id": "018e14f5-f041-23ce-02af-d040b908c232",
    "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-03-06T18:10:45.953735Z",
    "note": "",
    "avatar": null,
    "header": null,
    "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": "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": "018e14ff-39ba-f374-4084-0427d97bad5a",
      "type": "image",
      "url": "http://mitra/media/dbc4400c903fee174aa8d497027db38495d6989d3a1083c73e522679717f3038.png",
      "preview_url": "http://mitra/media/dbc4400c903fee174aa8d497027db38495d6989d3a1083c73e522679717f3038.png",
      "description": "name"
    }
  ],
  "mentions": [
    {
      "id": "018e14f4-d873-ad2f-57db-aa3652520cfb",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "ipfs_cid": null,
  "token_id": null,
  "token_tx_id": 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/klEO411txGQ",
  "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/YqrKWkGXIaY",
    "published": "2024-03-06T18:21:08Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ]
  }
}
mitra
{
  "id": "018e14ff-87d0-5206-de21-179e5a9b33d5",
  "uri": "http://pasture_one_actor/actor/YqrKWkGXIaY",
  "url": null,
  "created_at": "2024-03-06T18:21:08Z",
  "edited_at": null,
  "account": {
    "id": "018e14f5-f041-23ce-02af-d040b908c232",
    "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-03-06T18:10:45.953735Z",
    "note": "",
    "avatar": null,
    "header": null,
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 27,
    "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": "018e14ff-87cd-2716-2642-2b28dc596321",
      "type": "image",
      "url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "description": "name"
    }
  ],
  "mentions": [
    {
      "id": "018e14f4-d873-ad2f-57db-aa3652520cfb",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "ipfs_cid": null,
  "token_id": null,
  "token_tx_id": 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/V9-eqBFEsu8",
  "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/ebdmfDm0Uww",
    "published": "2024-03-06T18:21:28Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png"
      }
    ]
  }
}
mitra
{
  "id": "018e14ff-d5f1-d4c6-962c-8b7a33553903",
  "uri": "http://pasture_one_actor/actor/ebdmfDm0Uww",
  "url": null,
  "created_at": "2024-03-06T18:21:28Z",
  "edited_at": null,
  "account": {
    "id": "018e14f5-f041-23ce-02af-d040b908c232",
    "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-03-06T18:10:45.953735Z",
    "note": "",
    "avatar": null,
    "header": null,
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 28,
    "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": "018e14ff-d5ed-1363-2905-fecca620a6c4",
      "type": "image",
      "url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
      "description": null
    }
  ],
  "mentions": [
    {
      "id": "018e14f4-d873-ad2f-57db-aa3652520cfb",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "ipfs_cid": null,
  "token_id": null,
  "token_tx_id": null,
  "links": []
}