Skip to content

Image Description

The Image type is defined in ActivityStreams Vocabulary.

In this support table, we only consider how the image description, commonly called AltText is handled. Image descriptions are important from an accessibility standpoint, see WCAG 2.2. Text Alternatives.

It seems that certain implementations, e.g. firefish, store the image description on a per image URL basis and not for every instance of an image reference.

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/100.png"
  },
  "attributedTo": "http://actor.example",
  "content": "no description",
  "id": "http://actor.example/Gssybkg3z64",
  "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": {
    "content": "content",
    "name": "name",
    "summary": "summary",
    "type": "Document",
    "url": "http://pasture-one-actor/images/100.png"
  },
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/ZZEjUxgrXNM",
  "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": [
    {
      "imageType": "image/jpeg",
      "name": "name",
      "type": "Document",
      "url": "http://pasture-one-actor/assets/FediverseLogo.png"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/6bol_TNHmrI",
  "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": [
    {
      "type": "Document",
      "url": "http://pasture-one-actor/assets/FediverseLogo.png"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "no comment in attachment",
  "id": "http://actor.example/QPioCSM1Wxc",
  "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/mOI1ACbei-M",
  "object": {
    "attachment": {
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    },
    "attributedTo": "http://actor.example",
    "content": "no description",
    "id": "http://actor.example/cM35UU5UU30",
    "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/oy6dHF6reLo",
  "object": {
    "attachment": {
      "content": "content",
      "name": "name",
      "summary": "summary",
      "type": "Document",
      "url": "http://pasture-one-actor/images/100.png"
    },
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/Nx5fv9qUcI8",
    "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/VkRj7A9k1Vo",
  "object": {
    "attachment": [
      {
        "imageType": "image/jpeg",
        "name": "name",
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ],
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/w5PP899QUcM",
    "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/ZsRQ8NEgfZA",
  "object": {
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/assets/FediverseLogo.png"
      }
    ],
    "attributedTo": "http://actor.example",
    "content": "no comment in attachment",
    "id": "http://actor.example/VtpIQfR8PlE",
    "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"
}