# net.atview.gallery.photo

> Published by [atview.net](https://lexicon.garden/identity/did:plc:ycd3zyxa6iru5fiplr3un6nr)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.gallery.photo)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.gallery.photo/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.gallery.photo/examples)

## Definitions

### `net.atview.gallery.photo`

**Type**: `record`

A photo in an atview gallery. Stores the image blob alongside accessibility text, an optional caption, and categorization tags.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No | Alt text describing the photo for accessibility. |
| `blob` | `blob` | Yes | The photo image file. May be up to 2 MB. |
| `tags` | `array` | No | Tags used to categorize or filter gallery photos. Avoid prepending tags with hashtags. |
| `description` | `string` | No | Optional caption or longer description of the photo. |

## Raw Schema

```json
{
  "id": "net.atview.gallery.photo",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "blob"
        ],
        "properties": {
          "alt": {
            "type": "string",
            "maxLength": 5000,
            "description": "Alt text describing the photo for accessibility.",
            "maxGraphemes": 500
          },
          "blob": {
            "type": "blob",
            "accept": [
              "image/*"
            ],
            "maxSize": 10000000,
            "description": "The photo image file. May be up to 2 MB."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 1280,
              "maxGraphemes": 128
            },
            "description": "Tags used to categorize or filter gallery photos. Avoid prepending tags with hashtags."
          },
          "description": {
            "type": "string",
            "maxLength": 10000,
            "description": "Optional caption or longer description of the photo.",
            "maxGraphemes": 1000
          }
        }
      },
      "description": "A photo in an atview gallery. Stores the image blob alongside accessibility text, an optional caption, and categorization tags."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
