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.
Objects
Object 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
},
"attributedTo": "http://actor.example",
"content": "no description",
"id": "http://actor.example/Gnt-pYXEhk8",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"content": "content",
"name": "name",
"summary": "summary",
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
},
"attributedTo": "http://actor.example",
"content": "text",
"id": "http://actor.example/-WKjRwL0974",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": [
{
"imageType": "image/jpeg",
"name": "name",
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
],
"attributedTo": "http://actor.example",
"content": "text",
"id": "http://actor.example/cW1CV8rQt2M",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
],
"attributedTo": "http://actor.example",
"content": "no comment in attachment",
"id": "http://actor.example/f82pECklEhs",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Activities
Activity 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/dELfCUNlYoQ",
"object": {
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
},
"attributedTo": "http://actor.example",
"content": "no description",
"id": "http://actor.example/95V3vPaLqhs",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/Elf41EFbxLM",
"object": {
"attachment": {
"content": "content",
"name": "name",
"summary": "summary",
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
},
"attributedTo": "http://actor.example",
"content": "text",
"id": "http://actor.example/fcXzYrUIamg",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/WJux_BXNJnc",
"object": {
"attachment": [
{
"imageType": "image/jpeg",
"name": "name",
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
],
"attributedTo": "http://actor.example",
"content": "text",
"id": "http://actor.example/pd5xoEhh1pQ",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/BhKH3KxbXSw",
"object": {
"attachment": [
{
"type": "Document",
"url": "http://pasture-one-actor/assets/FediverseLogo.png"
}
],
"attributedTo": "http://actor.example",
"content": "no comment in attachment",
"id": "http://actor.example/SKLwKnqKP0Y",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}