net.atchan.media.getThumbnail

Get a thumbnail rendered from an image blob of a post embed.

Repository @atchan.net did:plc:vshgahazzq7qwvp2xc6ai27o namespace authority
Details · query
Kindquery
Authoritymedia.atchan.net
Commit rev3n2pc2ac6lc2k
Indexed
cid bafyreihg3psc3pzftns3vcxothmihc5biz257hoonc2k5rg2yg733w4zyi

Checks

Valid
  • unlimited-string defs.main.parameters.properties.formatNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a thumbnail rendered from an image blob of a post embed.",
      "errors": [
        {
          "description": "atchan has not indexed a post embedding this blob.",
          "name": "BlobNotFound"
        }
      ],
      "output": {
        "encoding": "image/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The CID of the blob.",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The DID of the account whose repo holds the blob.",
            "format": "did",
            "type": "string"
          },
          "format": {
            "default": "webp",
            "description": "Requested thumbnail image format; the formats are listed best to worst. Defaults to webp.",
            "enum": [
              "jxl",
              "avif",
              "webp"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "net.atchan.media.getThumbnail",
  "lexicon": 1
}