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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/_7oTIeq_RVs",
"published": "2025-06-16T09:28:39Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/wwOV2Zr3X-w",
"published": "2025-06-16T09:28:39Z",
"content": "Format png",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/001.png"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/6ySSfpueIAs",
"published": "2025-06-16T09:28:50Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/ZzRh8PggkXQ",
"published": "2025-06-16T09:28:50Z",
"content": "Format png",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/images/001b.png",
"mediaType": "image/png"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/N4vIP0EEhCs",
"published": "2025-06-16T09:29:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/cULKmGOfVYs",
"published": "2025-06-16T09:29:01Z",
"content": "Format jpg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002.jpg"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/NHutwL7V_Ts",
"published": "2025-06-16T09:29:11Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/KtM6GvnbV54",
"published": "2025-06-16T09:29:11Z",
"content": "Format jpg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/002b.jpg",
"mediaType": "image/jpeg"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/nRAb7MuiIGg",
"published": "2025-06-16T09:29:22Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/SvXueZFOJEo",
"published": "2025-06-16T09:29:22Z",
"content": "Format svg",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/assets/FediverseLogo.svg"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/FCKxtNhGihc",
"published": "2025-06-16T09:29:33Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/ofFKDNTxR6s",
"published": "2025-06-16T09:29:33Z",
"content": "Format eps",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003.eps"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/mV_NVZ44tmk",
"published": "2025-06-16T09:29:44Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/Nv_sro6dtJY",
"published": "2025-06-16T09:29:44Z",
"content": "Format gif",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003b.gif"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/CNgjJ50483I",
"published": "2025-06-16T09:29:54Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/tUt6lVCsNjU",
"published": "2025-06-16T09:29:54Z",
"content": "Format tiff",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003c.tiff"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/VCrd_ylSAFg",
"published": "2025-06-16T09:30:05Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/gSy-lgLwCcA",
"published": "2025-06-16T09:30:05Z",
"content": "Format webp",
"attachment": {
"type": "Image",
"url": "http://pasture-one-actor/images/003d.webp"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/GUn8tcbKBsg",
"published": "2025-06-16T09:30:16Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/MrI01rmASrY",
"published": "2025-06-16T09:30:16Z",
"content": "url does not exit",
"attachment": {
"type": "Document",
"url": "http://pasture-one-actor/assets/does_not_exist.png"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/0SDyffbwL6U",
"published": "2025-06-16T09:30:27Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/hJncqlLQT94",
"published": "2025-06-16T09:30:27Z",
"content": "Wrong height / width",
"attachment": {
"type": "Document",
"width": 13,
"height": 17,
"url": "http://pasture-one-actor/images/004.png"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/ghP-hfpnUws",
"published": "2025-06-16T09:30:38Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/SctkvdJNHLE",
"published": "2025-06-16T09:30:38Z",
"content": "No type",
"attachment": {
"url": "http://pasture-one-actor/images/005.png"
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/-fU9aUxrxAA",
"published": "2025-06-16T09:30:48Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/nKAgrxK5TsM",
"published": "2025-06-16T09:30:48Z",
"content": "url is Link object",
"attachment": {
"type": "Image",
"url": {
"type": "Link",
"href": "http://pasture-one-actor/images/006.png"
}
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/Rz8G0W4sXWs",
"published": "2025-06-16T09:30:59Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/yT3Dywsk_Zw",
"published": "2025-06-16T09:30:59Z",
"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"
}
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/WRPkJP7bpgk",
"published": "2025-06-16T09:31:10Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/_Z5PdIozcR4",
"published": "2025-06-16T09:31:10Z",
"content": "url is Link object in an array",
"attachment": {
"type": "Image",
"url": [
{
"type": "Link",
"href": "http://pasture-one-actor/images/006c.png"
}
]
}
}
}
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://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/HwmXJzyqde8",
"published": "2025-06-16T09:31:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a92fy09mup5x0003"
],
"id": "http://pasture-one-actor/actor/KkTl9OxzEFk",
"published": "2025-06-16T09:31:21Z",
"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"
}
]
}
}
}