Skip to content

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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/eKZjVwbqrCA",
  "published": "2025-04-11T08:33:49Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/ZDPTbMZquvY",
    "published": "2025-04-11T08:33:49Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/DEEc_hyAZIY",
  "published": "2025-04-11T08:34:00Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/63xR5E_dpe0",
    "published": "2025-04-11T08:34:00Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/oZ88fMX8wAc",
  "published": "2025-04-11T08:34:11Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/ahW8y-O2ZfM",
    "published": "2025-04-11T08:34:11Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/fU4OadcQPzo",
  "published": "2025-04-11T08:34:22Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/ss5RSbiuOIE",
    "published": "2025-04-11T08:34:22Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/ZWkCqkAg2bE",
  "published": "2025-04-11T08:34:32Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/1Ws-NKzODMs",
    "published": "2025-04-11T08:34:32Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/lSl2gRVstIc",
  "published": "2025-04-11T08:34:43Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/uOvtZWp0zTM",
    "published": "2025-04-11T08:34:43Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/6JLuvWRkm_8",
  "published": "2025-04-11T08:34:54Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/NJHyOVQnrPQ",
    "published": "2025-04-11T08:34:54Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/lG8HiVCzaYA",
  "published": "2025-04-11T08:35:05Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/xCfeNwTJXbQ",
    "published": "2025-04-11T08:35:05Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/hBoEl6u-I9Y",
  "published": "2025-04-11T08:35:15Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/ySv9nGCrM88",
    "published": "2025-04-11T08:35:15Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/cN158N6IYW0",
  "published": "2025-04-11T08:35:26Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/iEFwuT1leSA",
    "published": "2025-04-11T08:35:26Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/Tdo3YjFyif0",
  "published": "2025-04-11T08:35:37Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/K0R0qyt3c1M",
    "published": "2025-04-11T08:35:37Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/viw06c7xXlA",
  "published": "2025-04-11T08:35:48Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/mzgX1Oi5m7g",
    "published": "2025-04-11T08:35:48Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/SfCmciixA3w",
  "published": "2025-04-11T08:35:58Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/N50V47THtn8",
    "published": "2025-04-11T08:35:58Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/zMNlUC7EK_4",
  "published": "2025-04-11T08:36:09Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/0fxBhq6QDEQ",
    "published": "2025-04-11T08:36:09Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/oU1dJ5WkhjA",
  "published": "2025-04-11T08:36:20Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/enHjPaDVtyk",
    "published": "2025-04-11T08:36:20Z",
    "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": [
    "http://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/7ithmfFfEEg",
  "published": "2025-04-11T08:36:31Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/zJdcdmGxCAU",
    "published": "2025-04-11T08:36:31Z",
    "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"
        }
      ]
    }
  }
}