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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/LGKz2A2L7B4",
"published": "2024-10-21T15:36:26Z",
"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/ZCLjPqrw8fg",
"published": "2024-10-21T15:36:26Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mastodon
{
"id": "113346149515893701",
"created_at": "2024-10-21T15:36:26.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/ZCLjPqrw8fg",
"url": "http://pasture-one-actor/actor/ZCLjPqrw8fg",
"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": "113346141325661391",
"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-21T00: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-21",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113346149510868019",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/510/868/019/original/e11b98acbc9fbb85.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/510/868/019/small/e11b98acbc9fbb85.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": "U0D_h=?=fQ?=?=j@fQj@fQfQfQfQ?=j@fQj@"
}
],
"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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/TeRGuRep7pk",
"published": "2024-10-21T15:36:27Z",
"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/h1DkmRMpVFY",
"published": "2024-10-21T15:36:27Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mastodon
{
"id": "113346149583920356",
"created_at": "2024-10-21T15:36:27.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/h1DkmRMpVFY",
"url": "http://pasture-one-actor/actor/h1DkmRMpVFY",
"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": "113346141325661391",
"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-21T00: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-21",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113346149577070177",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/577/070/177/original/3439e0693626cf09.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/577/070/177/small/3439e0693626cf09.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": "U19*mWtVfQtVtVfRfQfRfQfQfQfQtVfRfQfR"
}
],
"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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/d3z1M6G4W2A",
"published": "2024-10-21T15:36:28Z",
"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/vrj8CYdYHGI",
"published": "2024-10-21T15:36:28Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mastodon
{
"id": "113346149676597247",
"created_at": "2024-10-21T15:36:28.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/vrj8CYdYHGI",
"url": "http://pasture-one-actor/actor/vrj8CYdYHGI",
"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": "113346141325661391",
"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-21T00: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-21",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113346149662739472",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/662/739/472/original/41333ad74db493d1.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/662/739/472/small/41333ad74db493d1.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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/MDfcvW-MODo",
"published": "2024-10-21T15:36:29Z",
"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/ol6r5mTBQOc",
"published": "2024-10-21T15:36:29Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mastodon
{
"id": "113346149752997590",
"created_at": "2024-10-21T15:36:29.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/ol6r5mTBQOc",
"url": "http://pasture-one-actor/actor/ol6r5mTBQOc",
"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": "113346141325661391",
"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-21T00: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-21",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113346149740474015",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/740/474/015/original/35c8531053ceb33b.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/346/149/740/474/015/small/35c8531053ceb33b.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
}