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/tBd0BAHt0io",
"published": "2024-10-30T15:00: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/1YWUv3ZKcsQ",
"published": "2024-10-30T15:00:05Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
mastodon
{
"id": "113396967380832880",
"created_at": "2024-10-30T15:00: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/1YWUv3ZKcsQ",
"url": "http://pasture-one-actor/actor/1YWUv3ZKcsQ",
"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": "113396961204536607",
"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-30T00: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-30",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113396967374025192",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/374/025/192/original/a2eb75f27e0b3fa3.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/374/025/192/small/a2eb75f27e0b3fa3.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": "U0Ev^e][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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/wA-TZRdzbDM",
"published": "2024-10-30T15:00: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/yUp6v5kQwJc",
"published": "2024-10-30T15:00:06Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
mastodon
{
"id": "113396967459762619",
"created_at": "2024-10-30T15:00: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/yUp6v5kQwJc",
"url": "http://pasture-one-actor/actor/yUp6v5kQwJc",
"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": "113396961204536607",
"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-30T00: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-30",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113396967453905444",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/453/905/444/original/d19d1106dbeb1376.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/453/905/444/small/d19d1106dbeb1376.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": "U16811omfQomomfRfQfRfQfQfQfQomfRfQfR"
}
],
"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/BfMTPdp9Q_4",
"published": "2024-10-30T15:00: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/oRzusupybtg",
"published": "2024-10-30T15:00:07Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
mastodon
{
"id": "113396967547898068",
"created_at": "2024-10-30T15:00: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/oRzusupybtg",
"url": "http://pasture-one-actor/actor/oRzusupybtg",
"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": "113396961204536607",
"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-30T00: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-30",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113396967534804778",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/534/804/778/original/8435cbbfc06994b9.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/534/804/778/small/8435cbbfc06994b9.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/45uQ3F4Tpjs",
"published": "2024-10-30T15:00: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/a5e78dadsGw",
"published": "2024-10-30T15:00:08Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
mastodon
{
"id": "113396967610824569",
"created_at": "2024-10-30T15:00: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/a5e78dadsGw",
"url": "http://pasture-one-actor/actor/a5e78dadsGw",
"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": "113396961204536607",
"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-30T00: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-10-30",
"hide_collections": true,
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "113396967598799289",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/598/799/289/original/9fa64fb412fa7c00.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/113/396/967/598/799/289/small/9fa64fb412fa7c00.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
}