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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/133XzatsuGo",
"published": "2025-03-12T10:32:55Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/EKuLZZ-u2S4",
"published": "2025-03-12T10:32:55Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/i64oWqM32sI",
"published": "2025-03-12T10:33:05Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/ygwVgnwmmdA",
"published": "2025-03-12T10:33:05Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/HSO7m_ND_iw",
"published": "2025-03-12T10:33:16Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/0GIxKsH7Rbg",
"published": "2025-03-12T10:33:16Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/txJ1oHYF8Ac",
"published": "2025-03-12T10:33:27Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/IrJ_-2Rg6gk",
"published": "2025-03-12T10:33:27Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/sJVdGnC2MuE",
"published": "2025-03-12T10:33:38Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/l4MmcmOThSs",
"published": "2025-03-12T10:33:38Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/TecHdMRde9A",
"published": "2025-03-12T10:33:48Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/4cTIcSOLXjM",
"published": "2025-03-12T10:33:48Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/iz3ZZb69p1c",
"published": "2025-03-12T10:33:59Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/lJyfQPH-6Yw",
"published": "2025-03-12T10:33:59Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/PazV-W8K96U",
"published": "2025-03-12T10:34:10Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/vy2pCUXdbA0",
"published": "2025-03-12T10:34:10Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/JuMIcXw2HXc",
"published": "2025-03-12T10:34:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/YMnpJ4scHJ8",
"published": "2025-03-12T10:34:21Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/RSSzi2ZXvkM",
"published": "2025-03-12T10:34:31Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/YJfLqkDIttI",
"published": "2025-03-12T10:34:31Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/srlCqiBpuOU",
"published": "2025-03-12T10:34:42Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/dO9EetueGO0",
"published": "2025-03-12T10:34:42Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/jVCsMfc-i3c",
"published": "2025-03-12T10:34:53Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/V-WJ1Jayb_I",
"published": "2025-03-12T10:34:53Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/Xpa-0oas05w",
"published": "2025-03-12T10:35:04Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/EqZIuAM9fZc",
"published": "2025-03-12T10:35:04Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/9nvTwBxzaQY",
"published": "2025-03-12T10:35:14Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/En5koPJTtyk",
"published": "2025-03-12T10:35:14Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/19hQlcRAwa8",
"published": "2025-03-12T10:35:25Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/lH-wjWWBFFs",
"published": "2025-03-12T10:35:25Z",
"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/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/7kza6QnTEiU",
"published": "2025-03-12T10:35:36Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a59bykudnkgb0003"
],
"id": "http://pasture-one-actor/actor/S5stDPX13yA",
"published": "2025-03-12T10:35:36Z",
"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"
}
]
}
}
}