# social.coves.embed.images

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.images)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.images/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.embed.images/examples)

## Definitions

### `social.coves.embed.images`

**Type**: `object`

Image set embed supporting multiple images (max 8)

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `images` | `array` | Yes | Set of images in the post |

### `social.coves.embed.images#image`

**Type**: `object`

Individual image with metadata

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No | Alt text for accessibility |
| `image` | `blob` | Yes | Image blob reference |
| `aspectRatio` | `ref` → `#aspectRatio` | No | Aspect ratio for client-side rendering optimization |

### `social.coves.embed.images#aspectRatio`

**Type**: `object`

Image aspect ratio for client display

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes | Width component of aspect ratio |
| `height` | `integer` | Yes | Height component of aspect ratio |

## Raw Schema

```json
{
  "id": "social.coves.embed.images",
  "defs": {
    "main": {
      "type": "object",
      "required": [
        "images"
      ],
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 8,
          "minLength": 1,
          "description": "Set of images in the post"
        }
      },
      "description": "Image set embed supporting multiple images (max 8)"
    },
    "image": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 10000,
          "description": "Alt text for accessibility",
          "maxGraphemes": 1000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/png",
            "image/jpeg",
            "image/webp",
            "image/gif"
          ],
          "maxSize": 10000000,
          "description": "Image blob reference"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref",
          "description": "Aspect ratio for client-side rendering optimization"
        }
      },
      "description": "Individual image with metadata"
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1,
          "description": "Width component of aspect ratio"
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "description": "Height component of aspect ratio"
        }
      },
      "description": "Image aspect ratio for client display"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
