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/u2hfiT5Dt3U",
"published": "2024-10-24T11:41:43Z",
"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/c5SyvUMkPgE",
"published": "2024-10-24T11:41:43Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mitra
{
"id": "0192be55-276a-3ca5-9baa-f3782cf50f31",
"uri": "http://pasture-one-actor/actor/c5SyvUMkPgE",
"url": "http://pasture-one-actor/actor/c5SyvUMkPgE",
"created_at": "2024-10-24T11:41:43Z",
"edited_at": null,
"account": {
"id": "0192be53-6a56-5b42-5975-a170d3aaf1bf",
"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-10-24T11:39:50.742138Z",
"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": "0192be55-2763-97d8-3733-02a611bd5540",
"type": "image",
"url": "http://mitra/media/e990f73b00d554e21d26b8d07099cc73ecef2f3e4a76663ba2f024f0203779d2.png",
"preview_url": "http://mitra/media/e990f73b00d554e21d26b8d07099cc73ecef2f3e4a76663ba2f024f0203779d2.png",
"description": null
}
],
"mentions": [
{
"id": "0192be52-5560-dd88-98be-bcb4145d68d0",
"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/Ip2KKN_77C8",
"published": "2024-10-24T11:41:44Z",
"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/q9UPmioWCto",
"published": "2024-10-24T11:41:44Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mitra
{
"id": "0192be55-2d48-8bb6-321d-17920e11b52d",
"uri": "http://pasture-one-actor/actor/q9UPmioWCto",
"url": "http://pasture-one-actor/actor/q9UPmioWCto",
"created_at": "2024-10-24T11:41:44Z",
"edited_at": null,
"account": {
"id": "0192be53-6a56-5b42-5975-a170d3aaf1bf",
"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-10-24T11:39:50.742138Z",
"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": "0192be55-2d44-b1b4-36af-4eb2a41c47e9",
"type": "image",
"url": "http://mitra/media/14f1db2401531fe6349b2cfd423e6a515686a14300c0f06da1177a2a9d93d1a2.png",
"preview_url": "http://mitra/media/14f1db2401531fe6349b2cfd423e6a515686a14300c0f06da1177a2a9d93d1a2.png",
"description": "name"
}
],
"mentions": [
{
"id": "0192be52-5560-dd88-98be-bcb4145d68d0",
"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/z9Z4J3Xgd3w",
"published": "2024-10-24T11:41:46Z",
"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/KbVIocBSCjE",
"published": "2024-10-24T11:41:46Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mitra
{
"id": "0192be55-3340-2510-6eee-c471958af28b",
"uri": "http://pasture-one-actor/actor/KbVIocBSCjE",
"url": "http://pasture-one-actor/actor/KbVIocBSCjE",
"created_at": "2024-10-24T11:41:46Z",
"edited_at": null,
"account": {
"id": "0192be53-6a56-5b42-5975-a170d3aaf1bf",
"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-10-24T11:39:50.742138Z",
"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": "0192be55-3339-c973-1455-6701b1cf3532",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": "name"
}
],
"mentions": [
{
"id": "0192be52-5560-dd88-98be-bcb4145d68d0",
"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/zChFDRInxeY",
"published": "2024-10-24T11:41:47Z",
"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/dXs1BpqlKaY",
"published": "2024-10-24T11:41:47Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mitra
{
"id": "0192be55-38fa-656e-8154-c176984b756d",
"uri": "http://pasture-one-actor/actor/dXs1BpqlKaY",
"url": "http://pasture-one-actor/actor/dXs1BpqlKaY",
"created_at": "2024-10-24T11:41:47Z",
"edited_at": null,
"account": {
"id": "0192be53-6a56-5b42-5975-a170d3aaf1bf",
"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-10-24T11:39:50.742138Z",
"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": "0192be55-38f6-cf8c-c7f2-0b06b58775cf",
"type": "image",
"url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"preview_url": "http://mitra/media/2d7a61d31393a44edf2a30160cdd70b3582a4f97d5b550f8141dfee1641b4ae7.png",
"description": null
}
],
"mentions": [
{
"id": "0192be52-5560-dd88-98be-bcb4145d68d0",
"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": []
}