org.atsui.Blob

atsui.org

Documentation

Displays an AT Protocol blob as an image.

main procedure

Displays an AT Protocol blob as an image.

Input

Encodingapplication/json
did stringdid Required

DID of the blob owner. Used to resolve blob URLs.

fit string Optional

When set, Blob fills its container height. 'cover' crops to fill; 'contain' letterboxes.

maxLength: 32 bytes
ratio ref#aspectRatio Optional

Known aspect ratio for CLS prevention. Reserves space before the image loads.

src unknown Required

Blob ref for the image.

Output

Encodingapplication/json
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "src",
        "did"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "DID of the blob owner. Used to resolve blob URLs."
        },
        "fit": {
          "enum": [
            "cover",
            "contain"
          ],
          "type": "string",
          "maxLength": 32,
          "description": "When set, Blob fills its container height. 'cover' crops to fill; 'contain' letterboxes."
        },
        "src": {
          "type": "unknown",
          "description": "Blob ref for the image."
        },
        "ratio": {
          "ref": "#aspectRatio",
          "type": "ref",
          "description": "Known aspect ratio for CLS prevention. Reserves space before the image loads."
        }
      }
    },
    "encoding": "application/json"
  },
  "output": {
    "schema": {
      "ref": "at.inlay.defs#response",
      "type": "ref"
    },
    "encoding": "application/json"
  },
  "description": "Displays an AT Protocol blob as an image."
}
aspectRatio object

No description available.

Properties

height integer Required

No description available.

minimum: 1
width integer Required

No description available.

minimum: 1
View raw schema
{
  "type": "object",
  "required": [
    "width",
    "height"
  ],
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    }
  }
}

Lexicon Garden

@