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://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/z3THbIHY_l0",
"published": "2024-09-04T11:05:28Z",
"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/FLswV0ixfnA",
"published": "2024-09-04T11:05:28Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mitra
{
"id": "0191bcb6-01d4-c758-3cb8-12f19660e164",
"uri": "http://pasture-one-actor/actor/FLswV0ixfnA",
"url": "http://pasture-one-actor/actor/FLswV0ixfnA",
"created_at": "2024-09-04T11:05:28Z",
"edited_at": null,
"account": {
"id": "0191bcb4-4397-50dd-ea22-cd8bafc9f5b0",
"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-04T11:03:36.086945Z",
"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": "0191bcb6-01cc-b3cd-994e-69a2015c1810",
"type": "image",
"url": "http://mitra/media/2a68995188abc6418b3d8e72b5ddb0cb8f701fe950dbc52f80376babd7e2f38d.png",
"preview_url": "http://mitra/media/2a68995188abc6418b3d8e72b5ddb0cb8f701fe950dbc52f80376babd7e2f38d.png",
"description": null
}
],
"mentions": [
{
"id": "0191bcb3-10b1-24f3-311b-7c50f6dc81f5",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/nw7EBUI_x_U",
"published": "2024-09-04T11:05:30Z",
"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/QX-R7uuv3Jo",
"published": "2024-09-04T11:05:30Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mitra
{
"id": "0191bcb6-07aa-3558-3d70-c5ffd3c4ddd2",
"uri": "http://pasture-one-actor/actor/QX-R7uuv3Jo",
"url": "http://pasture-one-actor/actor/QX-R7uuv3Jo",
"created_at": "2024-09-04T11:05:30Z",
"edited_at": null,
"account": {
"id": "0191bcb4-4397-50dd-ea22-cd8bafc9f5b0",
"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-04T11:03:36.086945Z",
"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": "0191bcb6-07a2-7d09-3caf-8f3963603e07",
"type": "image",
"url": "http://mitra/media/e7df4de6e26e908763c5bf823d0b72f1bd11f7cdf600fa369eeb2dba4de43ca3.png",
"preview_url": "http://mitra/media/e7df4de6e26e908763c5bf823d0b72f1bd11f7cdf600fa369eeb2dba4de43ca3.png",
"description": "name"
}
],
"mentions": [
{
"id": "0191bcb3-10b1-24f3-311b-7c50f6dc81f5",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/0krTvQBNJn8",
"published": "2024-09-04T11:05:32Z",
"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/10d-eAMHnkQ",
"published": "2024-09-04T11:05:32Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mitra
{
"id": "0191bcb6-0da9-44dd-b634-4cb263788497",
"uri": "http://pasture-one-actor/actor/10d-eAMHnkQ",
"url": "http://pasture-one-actor/actor/10d-eAMHnkQ",
"created_at": "2024-09-04T11:05:32Z",
"edited_at": null,
"account": {
"id": "0191bcb4-4397-50dd-ea22-cd8bafc9f5b0",
"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-04T11:03:36.086945Z",
"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": "0191bcb6-0da4-0b4a-3d9f-ba40a489ffc9",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": "name"
}
],
"mentions": [
{
"id": "0191bcb3-10b1-24f3-311b-7c50f6dc81f5",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/wxUfGaBk5Uc",
"published": "2024-09-04T11:05:33Z",
"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/cRMpeK4t-i4",
"published": "2024-09-04T11:05:33Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mitra
{
"id": "0191bcb6-1380-238b-833c-886d3a55f10c",
"uri": "http://pasture-one-actor/actor/cRMpeK4t-i4",
"url": "http://pasture-one-actor/actor/cRMpeK4t-i4",
"created_at": "2024-09-04T11:05:33Z",
"edited_at": null,
"account": {
"id": "0191bcb4-4397-50dd-ea22-cd8bafc9f5b0",
"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-04T11:03:36.086945Z",
"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": "0191bcb6-1378-2434-83b0-00b278729657",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": null
}
],
"mentions": [
{
"id": "0191bcb3-10b1-24f3-311b-7c50f6dc81f5",
"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": []
}