blog.pckt.block.image

pckt.blog

Documentation

main object

No description available.

Properties

View raw schema
{
  "type": "object",
  "required": [
    "attrs"
  ],
  "properties": {
    "attrs": {
      "ref": "#imageAttrs",
      "type": "ref",
      "description": "Image attributes"
    }
  }
}
aspectRatio object

Image aspect ratio represented as width and height dimensions

Properties

height integer Required

Height component of aspect ratio

minimum: 1
width integer Required

Width component of aspect ratio

minimum: 1
View raw schema
{
  "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 represented as width and height dimensions"
}
imageAttrs object

Image attributes

Properties

align string Optional

Horizontal alignment of the image within its container

alt string Optional

Alternative text description for accessibility and screen readers

maxLength: 1000 bytesmaxGraphemes: 300 graphemes
aspectRatio ref #aspectRatio Optional

Image aspect ratio for proper layout before loading

blob blob Optional

AT Protocol blob reference (10MB max). Used when image is uploaded to PDS.

maxSize: 10.0 MB
src string Required

Image source URL or blob reference (blob:CID format for AT Protocol blobs)

maxLength: 2000 bytes
title string Optional

Optional image title displayed on hover

maxLength: 500 bytesmaxGraphemes: 200 graphemes
View raw schema
{
  "type": "object",
  "required": [
    "src"
  ],
  "properties": {
    "alt": {
      "type": "string",
      "maxLength": 1000,
      "description": "Alternative text description for accessibility and screen readers",
      "maxGraphemes": 300
    },
    "src": {
      "type": "string",
      "maxLength": 2000,
      "description": "Image source URL or blob reference (blob:CID format for AT Protocol blobs)"
    },
    "blob": {
      "type": "blob",
      "accept": [
        "image/*"
      ],
      "maxSize": 10000000,
      "description": "AT Protocol blob reference (10MB max). Used when image is uploaded to PDS."
    },
    "align": {
      "enum": [
        "left",
        "center",
        "right"
      ],
      "type": "string",
      "description": "Horizontal alignment of the image within its container"
    },
    "title": {
      "type": "string",
      "maxLength": 500,
      "description": "Optional image title displayed on hover",
      "maxGraphemes": 200
    },
    "aspectRatio": {
      "ref": "#aspectRatio",
      "type": "ref",
      "description": "Image aspect ratio for proper layout before loading"
    }
  },
  "description": "Image attributes"
}

Lexicon Garden

@