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. A "-" means that the message was parsed, but
no attachment was generated. The text, e.g. image
or
unknown
is the the media type the Fediverse application
determined for the attachment.
We furthermore wish to point out that having several links
in the url
property is useful to both offer the attachment
in different formats and say dimensions, e.g. one high resolution
and one low resolution one.
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/QeRUu9yDTac",
"published": "2025-07-15T10:26:46Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/_KQ9aeDmUUk",
"published": "2025-07-15T10:26:46Z",
"content": "Format png",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/001.png"
},
"cc": []
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/zteG5NWxvDU",
"published": "2025-07-15T10:27:00Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/6sfSEPz7bxU",
"published": "2025-07-15T10:27:00Z",
"content": "Format png",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/001b.png",
"mediaType": "image/png"
},
"cc": []
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/Rg0A2PsUTmw",
"published": "2025-07-15T10:27:14Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/WZ06bSSgFes",
"published": "2025-07-15T10:27:14Z",
"content": "Format jpg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002.jpg"
},
"cc": []
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/2g0aUftiiOk",
"published": "2025-07-15T10:27:27Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/9gONsNw1oyo",
"published": "2025-07-15T10:27:27Z",
"content": "Format jpg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002b.jpg",
"mediaType": "image/jpeg"
},
"cc": []
}
}
Example 5¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/dtbgDoHw7dM",
"published": "2025-07-15T10:27:41Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/DMtBYzHTLVY",
"published": "2025-07-15T10:27:41Z",
"content": "Format svg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/assets/FediverseLogo.svg"
},
"cc": []
}
}
Example 6¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/N1A-O3dzHRk",
"published": "2025-07-15T10:27:54Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/K41h0mTR-tU",
"published": "2025-07-15T10:27:54Z",
"content": "Format eps",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003.eps"
},
"cc": []
}
}
Example 7¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/qfesfRiLvFM",
"published": "2025-07-15T10:28:08Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/J6UdEV-OR6I",
"published": "2025-07-15T10:28:08Z",
"content": "Format gif",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003b.gif"
},
"cc": []
}
}
Example 8¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/BtvZFRtGggk",
"published": "2025-07-15T10:28:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/H2ZEAQmK1jM",
"published": "2025-07-15T10:28:21Z",
"content": "Format tiff",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003c.tiff"
},
"cc": []
}
}
Example 9¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/dhYx-7HAYH0",
"published": "2025-07-15T10:28:35Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/Nv4qbZgQXxs",
"published": "2025-07-15T10:28:35Z",
"content": "Format webp",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003d.webp"
},
"cc": []
}
}
Example 10¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/aNwuQ78CtGs",
"published": "2025-07-15T10:28:48Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/LxL7FhBF_Js",
"published": "2025-07-15T10:28:48Z",
"content": "url does not exit",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/assets/does_not_exist.png"
},
"cc": []
}
}
Example 11¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/wJdanETOSbg",
"published": "2025-07-15T10:29:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/etlor_LznzQ",
"published": "2025-07-15T10:29:02Z",
"content": "Wrong height / width",
"attachment": {
"type": "Document",
"width": 13,
"height": 17,
"url": "http://pasture-one-actor/images/004.png"
},
"cc": []
}
}
Example 12¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/GPuBYyMwOvs",
"published": "2025-07-15T10:29:16Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/uvK7cL49kqs",
"published": "2025-07-15T10:29:16Z",
"content": "No type",
"attachment": {
"url": "http://pasture-one-actor/images/005.png"
},
"cc": []
}
}
Example 13¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/boW1xnZXeFE",
"published": "2025-07-15T10:29:29Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/gUs4MjMSMPs",
"published": "2025-07-15T10:29:29Z",
"content": "url is Link object",
"attachment": {
"type": "Image",
"url": {
"type": "Link",
"href": "http://pasture-one-actor/images/006.png"
}
},
"cc": []
}
}
Example 14¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/98gL8kfB5Sc",
"published": "2025-07-15T10:29:43Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/CTP-on2AsAs",
"published": "2025-07-15T10:29:43Z",
"content": "url is Link object with media type",
"attachment": {
"type": "Image",
"url": {
"type": "Link",
"href": "http://pasture-one-actor/images/006b.png",
"mediaType": "image/png"
}
},
"cc": []
}
}
Example 15¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/En7C2ITxaAE",
"published": "2025-07-15T10:29:56Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/fM3sqjasZG0",
"published": "2025-07-15T10:29:56Z",
"content": "url is Link object in an array",
"attachment": {
"type": "Image",
"url": [
{
"type": "Link",
"href": "http://pasture-one-actor/images/006c.png"
}
]
},
"cc": []
}
}
Example 16¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/2w6DTuobtsw",
"published": "2025-07-15T10:30:10Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/VhZGKhsZ2Co",
"published": "2025-07-15T10:30:10Z",
"content": "url is array of two Link objects",
"attachment": {
"type": "Image",
"url": [
{
"type": "Link",
"href": "http://pasture-one-actor/images/007.png",
"mediaType": "image/png"
},
{
"type": "Link",
"href": "http://pasture-one-actor/images/008.jpg",
"mediaType": "image/jpeg"
}
]
},
"cc": []
}
}