# com.scanash.content.image

> Published by [scanash.com](https://lexicon.garden/identity/did:plc:3i6uzuatdyk7rwfkrybynf5j)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:3i6uzuatdyk7rwfkrybynf5j/com.scanash.content.image)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3i6uzuatdyk7rwfkrybynf5j/com.scanash.content.image/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3i6uzuatdyk7rwfkrybynf5j/com.scanash.content.image/examples)

## Definitions

### `com.scanash.content.image`

**Type**: `object`

An image uploaded for a site.standard.document body. Held on the record (nested in the markdown content's `images` list) so the PDS retains the blob.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No | Alt text describing the image for accessibility. |
| `image` | `blob` | Yes |  |
| `aspectRatio` | `ref` → `#aspectRatio` | No | Intrinsic pixel dimensions, so the renderer can reserve space and avoid layout shift. |

### `com.scanash.content.image#aspectRatio`

**Type**: `object`

Intrinsic dimensions of the image in pixels.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes |  |
| `height` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "com.scanash.content.image",
  "defs": {
    "main": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 10000,
          "description": "Alt text describing the image for accessibility.",
          "maxGraphemes": 1000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/*"
          ],
          "maxSize": 5000000
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref",
          "description": "Intrinsic pixel dimensions, so the renderer can reserve space and avoid layout shift."
        }
      },
      "description": "An image uploaded for a site.standard.document body. Held on the record (nested in the markdown content's `images` list) so the PDS retains the blob."
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        }
      },
      "description": "Intrinsic dimensions of the image in pixels."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
