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.

Examples

Example 1

```json title="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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/wge7OjsZZcA",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/oEtTgXjc6Sg",
    "published": "2024-03-10T16:14:22Z",
    "content": "no description",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```

Example 2

```json title="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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/hlSAjGPMZC4",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/YwJ7EmEEcuM",
    "published": "2024-03-10T16:14:24Z",
    "content": "text",
    "attachment": {
      "type": "Document",
      "url": "http://pasture_one_actor/images/100.png",
      "name": "name",
      "summary": "summary",
      "content": "content"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```

Example 3

```json title="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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/X4KAoFf_Y5k",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/O-aJkgJwS7I",
    "published": "2024-03-10T16:14:27Z",
    "content": "text",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png",
        "name": "name",
        "imageType": "image/jpeg"
      }
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```

Example 4

```json title="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://gotosocial/users/cookie"
  ],
  "id": "http://pasture-one-actor/actor/Xjml1_c0W8c",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/6KCc_eTx8GA",
    "published": "2024-03-10T16:14:29Z",
    "content": "no comment in attachment",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture_one_actor/assets/FediverseLogo.png"
      }
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
```