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/9zc9563yl5zw0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/FosY5cxdPaY",
"published": "2024-10-14T07:26:37Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zc9563yl5zw0001"
],
"id": "http://pasture-one-actor/actor/piB5kL04_YI",
"published": "2024-10-14T07:26:37Z",
"content": "no description",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
}
}
}
sharkey
{
"id": "9zc996149trj000w",
"uri": "http://pasture-one-actor/actor/piB5kL04_YI",
"url": "http://pasture-one-actor/actor/piB5kL04_YI",
"account": {
"id": "9zc96sme9trj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-14T07:24:46.310Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 23,
"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
},
"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": "2024-10-14T07:26:37.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": "9zc996kw9trj000v",
"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
},
"description": null,
"blurhash": "e3IdNg,}fQ,}fQ,}jufQjufQfQfQfQfQfQ,}jufQjufQfQfQfQfQfQ"
}
],
"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/9zc9563yl5zw0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/ZpB1237hh6g",
"published": "2024-10-14T07:26:38Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zc9563yl5zw0001"
],
"id": "http://pasture-one-actor/actor/n9rXalZjBIQ",
"published": "2024-10-14T07:26:38Z",
"content": "text",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png",
"name": "name",
"summary": "summary",
"content": "content"
}
}
}
sharkey
{
"id": "9zc996sw9trj000y",
"uri": "http://pasture-one-actor/actor/n9rXalZjBIQ",
"url": "http://pasture-one-actor/actor/n9rXalZjBIQ",
"account": {
"id": "9zc96sme9trj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-14T07:24:46.310Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 24,
"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
},
"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": "2024-10-14T07:26:38.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": "9zc997849trj000x",
"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
},
"description": "name",
"blurhash": "e2MNnF}xfQ}xfQ}xj[fQj[fQfQfQfQfQfQ}xj[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 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/9zc9563yl5zw0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/FX8pPH4Y8qA",
"published": "2024-10-14T07:26:39Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zc9563yl5zw0001"
],
"id": "http://pasture-one-actor/actor/w_j2lfC1FpU",
"published": "2024-10-14T07:26:39Z",
"content": "text",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png",
"name": "name",
"imageType": "image/jpeg"
}
]
}
}
sharkey
{
"id": "9zc997ko9trj0010",
"uri": "http://pasture-one-actor/actor/w_j2lfC1FpU",
"url": "http://pasture-one-actor/actor/w_j2lfC1FpU",
"account": {
"id": "9zc96sme9trj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-14T07:24:46.310Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 25,
"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
},
"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": "2024-10-14T07:26:39.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": "9zc997we9trj000z",
"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
},
"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/9zc9563yl5zw0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/GhtnMs5YjVg",
"published": "2024-10-14T07:26:39Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9zc9563yl5zw0001"
],
"id": "http://pasture-one-actor/actor/enzdveY0OIM",
"published": "2024-10-14T07:26:39Z",
"content": "no comment in attachment",
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
]
}
}
sharkey
{
"id": "9zc997ko9trj0011",
"uri": "http://pasture-one-actor/actor/enzdveY0OIM",
"url": "http://pasture-one-actor/actor/enzdveY0OIM",
"account": {
"id": "9zc96sme9trj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-10-14T07:24:46.310Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 26,
"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
},
"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": "2024-10-14T07:26:39.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": "9zc997we9trj000z",
"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
},
"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
}