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/Vg1Hl_BoPqw",
"published": "2024-08-29T15:20:46Z",
"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/hW3oxSSVDbQ",
"published": "2024-08-29T15:20:46Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mastodon
{
"id": "113045985446589786",
"created_at": "2024-08-29T15:20:46.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/hW3oxSSVDbQ",
"url": "http://pasture-one-actor/actor/hW3oxSSVDbQ",
"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": "113045977783109636",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-08-29T00: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-08-29",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113045985443492342",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/443/492/342/original/d0e5308ab2878add.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/443/492/342/small/d0e5308ab2878add.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": "U5PPF~~TfQ~T~Tj[fQj[fQfQfQfQ~Tj[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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture-one-actor/actor/_zFymhhorhk",
"published": "2024-08-29T15:20:46Z",
"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/6wxJ7GWoDvk",
"published": "2024-08-29T15:20:46Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mastodon
{
"id": "113045985507662117",
"created_at": "2024-08-29T15:20:46.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/6wxJ7GWoDvk",
"url": "http://pasture-one-actor/actor/6wxJ7GWoDvk",
"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": "113045977783109636",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-08-29T00: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-08-29",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113045985505031251",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/505/031/251/original/56e415273880c31e.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/505/031/251/small/56e415273880c31e.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": "U6Dz:#y.fQy.y.j[fQj[fQfQfQfQy.j[fQj["
}
],
"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/BNRRfUPdWzk",
"published": "2024-08-29T15:20:47Z",
"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/JtlX8AeMzqg",
"published": "2024-08-29T15:20:47Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mastodon
{
"id": "113045985597895451",
"created_at": "2024-08-29T15:20:47.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/JtlX8AeMzqg",
"url": "http://pasture-one-actor/actor/JtlX8AeMzqg",
"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": "113045977783109636",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-08-29T00: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-08-29",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113045985572400152",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/572/400/152/original/cbe6a724dbe1f369.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/572/400/152/small/cbe6a724dbe1f369.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": "UJC$fp*q55T?}fjFEVw[4?K[RT$l9,O?V?X2"
}
],
"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/ldjrm4IM7Ek",
"published": "2024-08-29T15:20:48Z",
"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/IIprUh15TwM",
"published": "2024-08-29T15:20:48Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mastodon
{
"id": "113045985654818760",
"created_at": "2024-08-29T15:20:48.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/IIprUh15TwM",
"url": "http://pasture-one-actor/actor/IIprUh15TwM",
"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": "113045977783109636",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-08-29T00: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-08-29",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113045985630264930",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/630/264/930/original/148bb0edd8486cfb.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/045/985/630/264/930/small/148bb0edd8486cfb.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": "UJC$fp*q55T?}fjFEVw[4?K[RT$l9,O?V?X2"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}