org.atsui.Blob

Displays an AT Protocol blob as an image.

Repository @atsui.org did:plc:e4fjueijznwqm2yxvt7q4mba namespace authority
Details · procedure
Kindprocedure
Authorityatsui.org
Indexed

Showing version bafyreie5ozznszdyy7qpctuz2cseecaxbrhqewvsal4l6tnjhnyhliekxu. Show the latest

cid bafyreie5ozznszdyy7qpctuz2cseecaxbrhqewvsal4l6tnjhnyhliekxu

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "main": {
      "description": "Displays an AT Protocol blob as an image.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "description": "DID of the blob owner. Used to resolve blob URLs.",
              "format": "did",
              "type": "string"
            },
            "fit": {
              "description": "When set, Blob fills its container height. 'cover' crops to fill; 'contain' letterboxes.",
              "enum": [
                "cover",
                "contain"
              ],
              "maxLength": 32,
              "type": "string"
            },
            "ratio": {
              "description": "Known aspect ratio for CLS prevention. Reserves space before the image loads.",
              "ref": "#aspectRatio",
              "type": "ref"
            },
            "src": {
              "description": "Blob ref for the image.",
              "type": "unknown"
            }
          },
          "required": [
            "src",
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "at.inlay.defs#response",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.atsui.Blob",
  "lexicon": 1
}