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/78szVwBogTw",
"published": "2025-01-13T19:51:01Z",
"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/rlvyB_AkqZk",
"published": "2025-01-13T19:51:01Z",
"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/w2_YSFUYoUg",
"published": "2025-01-13T19:51:01Z",
"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/xrYMQGeiy3M",
"published": "2025-01-13T19:51:01Z",
"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/COhakuEGhyc",
"object": {
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/100.png"
},
"attributedTo": "http://actor.example",
"content": "no description",
"id": "http://actor.example/J03LSSVQiKI",
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"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/a3yqA1S5gGo",
"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/_Op650NLNAo",
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"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/hnPLqEUqVTg",
"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/bLpv9kjhdxk",
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"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/mdw9iqmsdwQ",
"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/rx43tGe16yk",
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-01-13T19:51:01Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}