Image Attachments
The Image type is defined in ActivityStreams Vocabulary.
In the following, we test how various configurations of it are rendered.
A ❌ in the support table means that the entire message has failed to parse.
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/001.png"
},
"attributedTo": "http://actor.example",
"content": "Format png",
"id": "http://actor.example/9-LsjQU5LD0",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"mediaType": "image/png",
"type": "Document",
"url": "http://pasture-one-actor/images/001b.png"
},
"attributedTo": "http://actor.example",
"content": "Format png",
"id": "http://actor.example/AA932SQl_Oo",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002.jpg"
},
"attributedTo": "http://actor.example",
"content": "Format jpg",
"id": "http://actor.example/be8iLqCvSQE",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"mediaType": "image/jpeg",
"type": "Image",
"url": "http://pasture-one-actor/images/002b.jpg"
},
"attributedTo": "http://actor.example",
"content": "Format jpg",
"id": "http://actor.example/2S6XGTRN8nM",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/assets/FediverseLogo.svg"
},
"attributedTo": "http://actor.example",
"content": "Format svg",
"id": "http://actor.example/FpW_-zB3ThU",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 6
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003.eps"
},
"attributedTo": "http://actor.example",
"content": "Format eps",
"id": "http://actor.example/PzxkAIMwO1M",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 7
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003b.gif"
},
"attributedTo": "http://actor.example",
"content": "Format gif",
"id": "http://actor.example/Dad5QESBLbc",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 8
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003c.tiff"
},
"attributedTo": "http://actor.example",
"content": "Format tiff",
"id": "http://actor.example/BAooSfvaBBY",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 9
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003d.webp"
},
"attributedTo": "http://actor.example",
"content": "Format webp",
"id": "http://actor.example/ET72HihvdEk",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 10
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/assets/does_not_exist.png"
},
"attributedTo": "http://actor.example",
"content": "url does not exit",
"id": "http://actor.example/CogL6oMQmDU",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 11
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"height": 17,
"type": "Document",
"url": "http://pasture-one-actor/images/004.png",
"width": 13
},
"attributedTo": "http://actor.example",
"content": "Wrong height / width",
"id": "http://actor.example/Pyi2oPYyGq8",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 12
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"url": "http://pasture-one-actor/images/005.png"
},
"attributedTo": "http://actor.example",
"content": "No type",
"id": "http://actor.example/gvrMF_lY0_g",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 13
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": {
"href": "http://pasture-one-actor/images/006.png",
"type": "Link"
}
},
"attributedTo": "http://actor.example",
"content": "url is Link object",
"id": "http://actor.example/IjRn1I7kfPc",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 14
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": {
"href": "http://pasture-one-actor/images/006b.png",
"mediaType": "image/png",
"type": "Link"
}
},
"attributedTo": "http://actor.example",
"content": "url is Link object with media type",
"id": "http://actor.example/qJKPXI8XSug",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 15
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": [
{
"href": "http://pasture-one-actor/images/006c.png",
"type": "Link"
}
]
},
"attributedTo": "http://actor.example",
"content": "url is Link object in an array",
"id": "http://actor.example/t84WcsOmmZk",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 16
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attachment": {
"type": "Image",
"url": [
{
"href": "http://pasture-one-actor/images/007.png",
"mediaType": "image/png",
"type": "Link"
},
{
"href": "http://pasture-one-actor/images/008.jpg",
"mediaType": "image/jpeg",
"type": "Link"
}
]
},
"attributedTo": "http://actor.example",
"content": "url is array of two Link objects",
"id": "http://actor.example/OfKB6uXx3f8",
"published": "2024-11-22T15:02:51Z",
"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/-LzAT935iA4",
"object": {
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/001.png"
},
"attributedTo": "http://actor.example",
"content": "Format png",
"id": "http://actor.example/_Yu_4XXsw1g",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"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/-q_7xarOkUA",
"object": {
"attachment": {
"mediaType": "image/png",
"type": "Document",
"url": "http://pasture-one-actor/images/001b.png"
},
"attributedTo": "http://actor.example",
"content": "Format png",
"id": "http://actor.example/N6nzytciykg",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"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/dLw9VSRsN8Q",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002.jpg"
},
"attributedTo": "http://actor.example",
"content": "Format jpg",
"id": "http://actor.example/9arg9Z19cCE",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"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/6iqCfyIxwAI",
"object": {
"attachment": {
"mediaType": "image/jpeg",
"type": "Image",
"url": "http://pasture-one-actor/images/002b.jpg"
},
"attributedTo": "http://actor.example",
"content": "Format jpg",
"id": "http://actor.example/XRI-reLS_Ow",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/6ey6tcVRsn8",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/assets/FediverseLogo.svg"
},
"attributedTo": "http://actor.example",
"content": "Format svg",
"id": "http://actor.example/c17j1uMV_wA",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 6
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/DYDXcs7klp8",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003.eps"
},
"attributedTo": "http://actor.example",
"content": "Format eps",
"id": "http://actor.example/UEwpqtBY5Aw",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 7
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/7_UtNM9xQ0E",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003b.gif"
},
"attributedTo": "http://actor.example",
"content": "Format gif",
"id": "http://actor.example/Mg8NKLyjZwg",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 8
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/pkXyarPbAW4",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003c.tiff"
},
"attributedTo": "http://actor.example",
"content": "Format tiff",
"id": "http://actor.example/w3YmXclX6X4",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 9
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/Zcz5D37L4uw",
"object": {
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003d.webp"
},
"attributedTo": "http://actor.example",
"content": "Format webp",
"id": "http://actor.example/GEHrNZkCqCE",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 10
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/wc8ZKZD-g0c",
"object": {
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/assets/does_not_exist.png"
},
"attributedTo": "http://actor.example",
"content": "url does not exit",
"id": "http://actor.example/DRjspg-S63U",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 11
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/1AEm9HgJVIs",
"object": {
"attachment": {
"height": 17,
"type": "Document",
"url": "http://pasture-one-actor/images/004.png",
"width": 13
},
"attributedTo": "http://actor.example",
"content": "Wrong height / width",
"id": "http://actor.example/bSwH6n8e-Gg",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 12
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/JEm5wJdraTQ",
"object": {
"attachment": {
"url": "http://pasture-one-actor/images/005.png"
},
"attributedTo": "http://actor.example",
"content": "No type",
"id": "http://actor.example/TDz6xTcuamY",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 13
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/bOHUedkDVd8",
"object": {
"attachment": {
"type": "Image",
"url": {
"href": "http://pasture-one-actor/images/006.png",
"type": "Link"
}
},
"attributedTo": "http://actor.example",
"content": "url is Link object",
"id": "http://actor.example/pdc5FajEMaM",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 14
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/gi8WMxMZdZE",
"object": {
"attachment": {
"type": "Image",
"url": {
"href": "http://pasture-one-actor/images/006b.png",
"mediaType": "image/png",
"type": "Link"
}
},
"attributedTo": "http://actor.example",
"content": "url is Link object with media type",
"id": "http://actor.example/-wXRCuvI4Wo",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 15
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/2cWAfTCgSmo",
"object": {
"attachment": {
"type": "Image",
"url": [
{
"href": "http://pasture-one-actor/images/006c.png",
"type": "Link"
}
]
},
"attributedTo": "http://actor.example",
"content": "url is Link object in an array",
"id": "http://actor.example/0QNa5toQ0mA",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 16
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/K_RP_AoIpZw",
"object": {
"attachment": {
"type": "Image",
"url": [
{
"href": "http://pasture-one-actor/images/007.png",
"mediaType": "image/png",
"type": "Link"
},
{
"href": "http://pasture-one-actor/images/008.jpg",
"mediaType": "image/jpeg",
"type": "Link"
}
]
},
"attributedTo": "http://actor.example",
"content": "url is array of two Link objects",
"id": "http://actor.example/WgoPuKxN5dk",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}