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/xoPocoxCzAo",
"published": "2024-11-09T09:32: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/BvEJbKbeVMw",
"published": "2024-11-09T09:32:33Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mitra
{
"id": "01931044-a5c5-6f49-dc70-864095b122f0",
"uri": "http://pasture-one-actor/actor/BvEJbKbeVMw",
"url": "http://pasture-one-actor/actor/BvEJbKbeVMw",
"created_at": "2024-11-09T09:32:33Z",
"edited_at": null,
"account": {
"id": "01931043-3805-4d23-c10f-9db3a6fed311",
"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-11-09T09:31:00.997662Z",
"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 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": "01931044-a5be-9bce-d605-cff812ac05ed",
"type": "image",
"url": "http://mitra/media/6294e3a33e95048611e3281250846a1d379a2d24d34f36c24cec6c245cadd129.png",
"preview_url": "http://mitra/media/6294e3a33e95048611e3281250846a1d379a2d24d34f36c24cec6c245cadd129.png",
"description": null
}
],
"mentions": [
{
"id": "01931042-0266-f29d-20df-5893aa929afe",
"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/xDXJZa1uTyw",
"published": "2024-11-09T09:32:34Z",
"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/TDRd_ObrUI8",
"published": "2024-11-09T09:32:34Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mitra
{
"id": "01931044-aba2-cf22-7f71-c08885e29bda",
"uri": "http://pasture-one-actor/actor/TDRd_ObrUI8",
"url": "http://pasture-one-actor/actor/TDRd_ObrUI8",
"created_at": "2024-11-09T09:32:34Z",
"edited_at": null,
"account": {
"id": "01931043-3805-4d23-c10f-9db3a6fed311",
"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-11-09T09:31:00.997662Z",
"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": 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": "01931044-ab9a-155d-27f4-fb6ff9e466eb",
"type": "image",
"url": "http://mitra/media/eee092e9cede4c2d1b98027f089065b7d0e4e901f4ba0aeacef8583175a3250f.png",
"preview_url": "http://mitra/media/eee092e9cede4c2d1b98027f089065b7d0e4e901f4ba0aeacef8583175a3250f.png",
"description": "name"
}
],
"mentions": [
{
"id": "01931042-0266-f29d-20df-5893aa929afe",
"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/32XmYr1BmvE",
"published": "2024-11-09T09:32:36Z",
"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/h9hcu2iGY7g",
"published": "2024-11-09T09:32:36Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mitra
{
"id": "01931044-b1a6-f25d-84b6-0b4b12c50428",
"uri": "http://pasture-one-actor/actor/h9hcu2iGY7g",
"url": "http://pasture-one-actor/actor/h9hcu2iGY7g",
"created_at": "2024-11-09T09:32:36Z",
"edited_at": null,
"account": {
"id": "01931043-3805-4d23-c10f-9db3a6fed311",
"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-11-09T09:31:00.997662Z",
"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": 28,
"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": "01931044-b19e-80a9-72db-a10808ad9cb2",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": "name"
}
],
"mentions": [
{
"id": "01931042-0266-f29d-20df-5893aa929afe",
"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/ijJr01hWANs",
"published": "2024-11-09T09:32:37Z",
"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/kGHlh7pwtes",
"published": "2024-11-09T09:32:37Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mitra
{
"id": "01931044-b771-4ab8-61e0-b6c53c64144b",
"uri": "http://pasture-one-actor/actor/kGHlh7pwtes",
"url": "http://pasture-one-actor/actor/kGHlh7pwtes",
"created_at": "2024-11-09T09:32:37Z",
"edited_at": null,
"account": {
"id": "01931043-3805-4d23-c10f-9db3a6fed311",
"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-11-09T09:31:00.997662Z",
"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": 29,
"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": "01931044-b76b-8928-0c26-18105e314715",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": null
}
],
"mentions": [
{
"id": "01931042-0266-f29d-20df-5893aa929afe",
"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": []
}