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://sharkey/users/a4wh4eu1r8ja0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/F7c1fpqHjbg",
"published": "2025-03-03T10:23:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a4wh4eu1r8ja0001"
],
"id": "http://pasture-one-actor/actor/zRO-ar-ZjS0",
"published": "2025-03-03T10:23:01Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
sharkey
{
"id": "a4wh7a140nxl0017",
"uri": "http://pasture-one-actor/actor/zRO-ar-ZjS0",
"url": "http://pasture-one-actor/actor/zRO-ar-ZjS0",
"account": {
"id": "a4wh5zbs0nxl0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2025-03-03T10:22:00.472Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 32,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true,
"noindex": false,
"group": null,
"suspended": false,
"limited": false
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>no description</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "no description",
"created_at": "2025-03-03T10:23:01.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [
{
"id": "a4wh7ahr0nxl0016",
"type": "image",
"url": "http://pasture-one-actor/images/100.png",
"remote_url": "http://pasture-one-actor/images/100.png",
"preview_url": "http://pasture-one-actor/images/100.png",
"text_url": "http://pasture-one-actor/images/100.png",
"meta": {
"width": 40,
"height": 40,
"original": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1,
"frame_rate": "undefined"
},
"size": "40x40",
"aspect": 1
},
"description": null,
"blurhash": "e2Ms?%~OfQ~OfQ~Oj@fQj@fQfQfQfQfQfQ~Oj@fQj@fQfQfQfQfQfQ"
}
],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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://sharkey/users/a4wh4eu1r8ja0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/pxYpiXxNcxw",
"published": "2025-03-03T10:23:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a4wh4eu1r8ja0001"
],
"id": "http://pasture-one-actor/actor/ChHiAqVmnfQ",
"published": "2025-03-03T10:23:02Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
sharkey
{
"id": "a4wh7asw0nxl0019",
"uri": "http://pasture-one-actor/actor/ChHiAqVmnfQ",
"url": "http://pasture-one-actor/actor/ChHiAqVmnfQ",
"account": {
"id": "a4wh5zbs0nxl0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2025-03-03T10:22:00.472Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 33,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true,
"noindex": false,
"group": null,
"suspended": false,
"limited": false
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2025-03-03T10:23:02.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [
{
"id": "a4wh7b2d0nxl0018",
"type": "image",
"url": "http://pasture-one-actor/images/100.png",
"remote_url": "http://pasture-one-actor/images/100.png",
"preview_url": "http://pasture-one-actor/images/100.png",
"text_url": "http://pasture-one-actor/images/100.png",
"meta": {
"width": 40,
"height": 40,
"original": {
"width": 40,
"height": 40,
"size": "40x40",
"aspect": 1,
"frame_rate": "undefined"
},
"size": "40x40",
"aspect": 1
},
"description": "name",
"blurhash": "e1H77|]UfQ]UfQ]UjtfQjtfQfQfQfQfQfQ]UjtfQjtfQfQfQfQfQfQ"
}
],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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://sharkey/users/a4wh4eu1r8ja0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/5WY6NTSgFVE",
"published": "2025-03-03T10:23:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a4wh4eu1r8ja0001"
],
"id": "http://pasture-one-actor/actor/ud-yOrTgm9c",
"published": "2025-03-03T10:23:02Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
sharkey
{
"id": "a4wh7asw0nxl001b",
"uri": "http://pasture-one-actor/actor/ud-yOrTgm9c",
"url": "http://pasture-one-actor/actor/ud-yOrTgm9c",
"account": {
"id": "a4wh5zbs0nxl0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2025-03-03T10:22:00.472Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 34,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true,
"noindex": false,
"group": null,
"suspended": false,
"limited": false
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2025-03-03T10:23:02.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [
{
"id": "a4wh7bpu0nxl001a",
"type": "image",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"preview_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"text_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"meta": {
"width": 1548,
"height": 1548,
"original": {
"width": 1548,
"height": 1548,
"size": "1548x1548",
"aspect": 1,
"frame_rate": "undefined"
},
"size": "1548x1548",
"aspect": 1
},
"description": "name",
"blurhash": "eQE_?c.}4.YJM^}fi{EVw[xu9JK[M~xI-T9+TJRPX2$$E]NFo}j1tO"
}
],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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://sharkey/users/a4wh4eu1r8ja0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/qDb_sUDZ-Q0",
"published": "2025-03-03T10:23:03Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a4wh4eu1r8ja0001"
],
"id": "http://pasture-one-actor/actor/gNCVQomkzQU",
"published": "2025-03-03T10:23:03Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
sharkey
{
"id": "a4wh7bko0nxl001c",
"uri": "http://pasture-one-actor/actor/gNCVQomkzQU",
"url": "http://pasture-one-actor/actor/gNCVQomkzQU",
"account": {
"id": "a4wh5zbs0nxl0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2025-03-03T10:22:00.472Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 35,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true,
"noindex": false,
"group": null,
"suspended": false,
"limited": false
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>no comment in attachment</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "no comment in attachment",
"created_at": "2025-03-03T10:23:03.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [
{
"id": "a4wh7bpu0nxl001a",
"type": "image",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"remote_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"preview_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"text_url": "http://pasture-one-actor/assets/FediverseLogo.png",
"meta": {
"width": 1548,
"height": 1548,
"original": {
"width": 1548,
"height": 1548,
"size": "1548x1548",
"aspect": 1,
"frame_rate": "undefined"
},
"size": "1548x1548",
"aspect": 1
},
"description": "name",
"blurhash": "eQE_?c.}4.YJM^}fi{EVw[xu9JK[M~xI-T9+TJRPX2$$E]NFo}j1tO"
}
],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": null
}