# com.foto-log.photo

> One photo on a fotolog. The record key is the uploadDate followed by a two-digit sequence number for that day, YYYY-MM-DD-NN (NN from 01 to 99), e.g. 2026-10-06-01. How many photos an account may post per day is decided by the app, not by this schema.

- Kind: record
- Record key: any
- Authority: foto-log.com
- Lexicon: 1
- Published by [foto-log.com](https://lexicon.garden/identity/did:plc:uex7tpbafbqyewx5zkvtc6pb), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uex7tpbafbqyewx5zkvtc6pb/com.foto-log.photo)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uex7tpbafbqyewx5zkvtc6pb/com.foto-log.photo/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uex7tpbafbqyewx5zkvtc6pb/com.foto-log.photo/analytics)

## Record (`com.foto-log.photo`)

Type: record · key any

### Properties

- `alt` (string): Alt text describing the image.
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `aspectRatio` (ref)
  - Reference: `#aspectRatio`
- `caption` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `createdAt` (string · datetime, required)
- `displayDate` (string, required): Calendar date (YYYY-MM-DD) the photo is shown under. Always equals uploadDate for now.
  - Constraints: minLength: 10, maxLength: 10
- `image` (blob, required)
  - Constraints: maxSize: 1000000, accept: image/*
- `post` (ref, required): The app.bsky.feed.post that shares this photo. Replies to it are the photo's guestbook.
  - Reference: `com.atproto.repo.strongRef`
- `timeZone` (string, required): IANA time zone name of the poster when the photo was posted, e.g. America/New_York.
  - Constraints: maxLength: 64
- `uploadDate` (string, required): Calendar date (YYYY-MM-DD) the photo was posted, in the poster's time zone. The record key starts with this date.
  - Constraints: minLength: 10, maxLength: 10
- `uploadedBy` (string · did): On a group's fotolog, the member who posted the photo. Absent when the account posted it itself.

## #aspectRatio (`com.foto-log.photo#aspectRatio`)

Type: object

Width and height of the image. Only the ratio matters.

### Properties

- `height` (integer, required)
  - Constraints: minimum: 1
- `width` (integer, required)
  - Constraints: minimum: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "description": "Width and height of the image. Only the ratio matters.",
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "main": {
      "description": "One photo on a fotolog. The record key is the uploadDate followed by a two-digit sequence number for that day, YYYY-MM-DD-NN (NN from 01 to 99), e.g. 2026-10-06-01. How many photos an account may post per day is decided by the app, not by this schema.",
      "key": "any",
      "record": {
        "properties": {
          "alt": {
            "description": "Alt text describing the image.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "aspectRatio": {
            "ref": "#aspectRatio",
            "type": "ref"
          },
          "caption": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "displayDate": {
            "description": "Calendar date (YYYY-MM-DD) the photo is shown under. Always equals uploadDate for now.",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/*"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "post": {
            "description": "The app.bsky.feed.post that shares this photo. Replies to it are the photo's guestbook.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "timeZone": {
            "description": "IANA time zone name of the poster when the photo was posted, e.g. America/New_York.",
            "maxLength": 64,
            "type": "string"
          },
          "uploadDate": {
            "description": "Calendar date (YYYY-MM-DD) the photo was posted, in the poster's time zone. The record key starts with this date.",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "uploadedBy": {
            "description": "On a group's fotolog, the member who posted the photo. Absent when the account posted it itself.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "post",
          "image",
          "uploadDate",
          "displayDate",
          "timeZone",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A daily photo on a foto-log.com fotolog.",
  "id": "com.foto-log.photo",
  "lexicon": 1
}
```
