# social.dracome.embed.defs

> Published by [dracome.social](https://lexicon.garden/identity/did:plc:66dyrt2bmghwlmdteyizs5l3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:66dyrt2bmghwlmdteyizs5l3/social.dracome.embed.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:66dyrt2bmghwlmdteyizs5l3/social.dracome.embed.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:66dyrt2bmghwlmdteyizs5l3/social.dracome.embed.defs/examples)

## Definitions

### `social.dracome.embed.defs#image`

**Type**: `object`

A single image attachment.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `altText` | `string` | No | Optional alt-text or accessibility description for the image. |
| `image` | `blob` | Yes | Image data blob. Max 2MB (2,000,000 bytes) per image. |

### `social.dracome.embed.defs#images`

**Type**: `object`

An optional primary/hero image plus optional additional images.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `primary` | `ref` → `#image` | No | Optional primary/hero image, when one is designated. At most one primary is structurally guaranteed by this being a scalar field rather than a per-item flag. |
| `secondary` | `array` | No | Additional images, in display order after the primary image if one is present. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "image": {
      "description": "A single image attachment.",
      "properties": {
        "altText": {
          "description": "Optional alt-text or accessibility description for the image.",
          "maxGraphemes": 256,
          "maxLength": 1024,
          "type": "string"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "description": "Image data blob. Max 2MB (2,000,000 bytes) per image.",
          "maxSize": 2000000,
          "type": "blob"
        }
      },
      "required": [
        "image"
      ],
      "type": "object"
    },
    "images": {
      "description": "An optional primary/hero image plus optional additional images.",
      "properties": {
        "primary": {
          "description": "Optional primary/hero image, when one is designated. At most one primary is structurally guaranteed by this being a scalar field rather than a per-item flag.",
          "ref": "#image",
          "type": "ref"
        },
        "secondary": {
          "description": "Additional images, in display order after the primary image if one is present.",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "social.dracome.embed.defs",
  "lexicon": 1
}
```
