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://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/7utnGf7UoVE",
"published": "2024-10-13T19:49:19Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/DZ7vmd7DnmA",
"published": "2024-10-13T19:49:19Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mastodon
{
"id": "113301845475485137",
"created_at": "2024-10-13T19:49:19.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/DZ7vmd7DnmA",
"url": "http://pasture-one-actor/actor/DZ7vmd7DnmA",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "no description",
"filtered": [],
"reblog": null,
"account": {
"id": "113301837442241755",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-10-13T00:00:00.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 28,
"last_status_at": "2024-10-13",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113301845469803822",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/469/803/822/original/6ab1e50ff74022c6.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/469/803/822/small/6ab1e50ff74022c6.png",
"remote_url": "http://pasture-one-actor/images/100.png",
"preview_remote_url": null,
"text_url": null,
"meta": {
"original": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1.0
},
"small": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1.0
}
},
"description": null,
"blurhash": "U0Dk9@=wfQ=w=wjtfQjtfQfQfQfQ=wjtfQjt"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/JejMGpRGt7c",
"published": "2024-10-13T19:49:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/IGPvJPcc7hQ",
"published": "2024-10-13T19:49:21Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mastodon
{
"id": "113301845538778718",
"created_at": "2024-10-13T19:49:21.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/IGPvJPcc7hQ",
"url": "http://pasture-one-actor/actor/IGPvJPcc7hQ",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "text",
"filtered": [],
"reblog": null,
"account": {
"id": "113301837442241755",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-10-13T00:00:00.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 29,
"last_status_at": "2024-10-13",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113301845533194990",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/533/194/990/original/ddcd95f7b38b03a4.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/533/194/990/small/ddcd95f7b38b03a4.png",
"remote_url": "http://pasture-one-actor/images/100.png",
"preview_remote_url": null,
"text_url": null,
"meta": {
"original": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1.0
},
"small": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1.0
}
},
"description": "summary",
"blurhash": "U0G;Hq|wfQ|w|wjtfQjtfQfQfQfQ|wjtfQjt"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/xXsM5EMRhPY",
"published": "2024-10-13T19:49:22Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/rcP_KvB9Nlc",
"published": "2024-10-13T19:49:22Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mastodon
{
"id": "113301845608432057",
"created_at": "2024-10-13T19:49:22.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/rcP_KvB9Nlc",
"url": "http://pasture-one-actor/actor/rcP_KvB9Nlc",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "text",
"filtered": [],
"reblog": null,
"account": {
"id": "113301837442241755",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-10-13T00:00:00.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 30,
"last_status_at": "2024-10-13",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113301845596060467",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/596/060/467/original/e2d8b535c0ae398d.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/596/060/467/small/e2d8b535c0ae398d.png",
"remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"preview_remote_url": null,
"text_url": null,
"meta": {
"original": {
"width": 1548,
"height": 1548,
"size": "1548x1548",
"aspect": 1.0
},
"small": {
"width": 480,
"height": 480,
"size": "480x480",
"aspect": 1.0
}
},
"description": "name",
"blurhash": "UOEVB2.}4.T=}fjEEVw[4=K[RUw~9,TJV?bW"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/NRZl9UZYzNU",
"published": "2024-10-13T19:49:22Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/v4hqsTqb0J8",
"published": "2024-10-13T19:49:22Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mastodon
{
"id": "113301845673270126",
"created_at": "2024-10-13T19:49:22.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/v4hqsTqb0J8",
"url": "http://pasture-one-actor/actor/v4hqsTqb0J8",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "no comment in attachment",
"filtered": [],
"reblog": null,
"account": {
"id": "113301837442241755",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-10-13T00:00:00.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 31,
"last_status_at": "2024-10-13",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113301845661329866",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/661/329/866/original/b2b7f5035920c7c5.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/301/845/661/329/866/small/b2b7f5035920c7c5.png",
"remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"preview_remote_url": null,
"text_url": null,
"meta": {
"original": {
"width": 1548,
"height": 1548,
"size": "1548x1548",
"aspect": 1.0
},
"small": {
"width": 480,
"height": 480,
"size": "480x480",
"aspect": 1.0
}
},
"description": null,
"blurhash": "UOEVB2.}4.T=}fjEEVw[4=K[RUw~9,TJV?bW"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}