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/PVc1B-lNnkw",
"published": "2024-12-04T18:17:05Z",
"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/pYLC7g80wVg",
"published": "2024-12-04T18:17:05Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mastodon
{
"id": "113595922903798544",
"created_at": "2024-12-04T18:17:05.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/pYLC7g80wVg",
"url": "http://pasture-one-actor/actor/pYLC7g80wVg",
"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": "113595915522908053",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-12-04T00: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": 32,
"last_status_at": "2024-12-04",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113595922898182384",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/595/922/898/182/384/original/1ed9f5b29d34a6b4.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/595/922/898/182/384/small/1ed9f5b29d34a6b4.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": "U2Kh%n,#fQ,#,#jufQjufQfQfQfQ,#jufQju"
}
],
"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/r-fRIph2UX4",
"published": "2024-12-04T18:17:06Z",
"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/9_fELoOh8_8",
"published": "2024-12-04T18:17:06Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mastodon
{
"id": "113595922979177505",
"created_at": "2024-12-04T18:17:06.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/9_fELoOh8_8",
"url": "http://pasture-one-actor/actor/9_fELoOh8_8",
"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": "113595915522908053",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-12-04T00: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": 33,
"last_status_at": "2024-12-04",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113595922973749085",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/595/922/973/749/085/original/aee41f8aff26f4d9.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/595/922/973/749/085/small/aee41f8aff26f4d9.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": "U145L;pMfQpMpMfRfQfRfQfQfQfQpMfRfQfR"
}
],
"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/kRvTTPSsKzc",
"published": "2024-12-04T18:17:07Z",
"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/FoIl11sNSWI",
"published": "2024-12-04T18:17:07Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mastodon
{
"id": "113595923047475453",
"created_at": "2024-12-04T18:17:07.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/FoIl11sNSWI",
"url": "http://pasture-one-actor/actor/FoIl11sNSWI",
"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": "113595915522908053",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-12-04T00: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": 34,
"last_status_at": "2024-12-04",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113595923035573152",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/595/923/035/573/152/original/0396de55040548a7.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/595/923/035/573/152/small/0396de55040548a7.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/tTdtgWCVIvg",
"published": "2024-12-04T18:17:08Z",
"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/uZJlS9qSUbA",
"published": "2024-12-04T18:17:08Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mastodon
{
"id": "113595923113917980",
"created_at": "2024-12-04T18:17:08.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/uZJlS9qSUbA",
"url": "http://pasture-one-actor/actor/uZJlS9qSUbA",
"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": "113595915522908053",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"indexable": false,
"group": false,
"created_at": "2024-12-04T00: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": 35,
"last_status_at": "2024-12-04",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113595923100716252",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/595/923/100/716/252/original/5171bda173c2f31e.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/595/923/100/716/252/small/5171bda173c2f31e.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
}