{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Server-side utility: transcodes an uploaded APNG (or other ffmpeg-readable animated image) into properly-sized animated WebP renditions, sidestepping imgproxy's lack of APNG support (see RFC 0001 / imgproxy#1222) by never storing raw APNG in the first place. Pure transcode — does not touch the PDS or write any record; the caller uploads the returned bytes via dev.hatk.uploadBlob itself, same as any other format. Input/output are base64 JSON, not raw bytes, because this AppView's custom-procedure dispatch always JSON-parses the request body (only the built-in dev.hatk.uploadBlob gets raw-body handling).",
      "errors": [],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "data": {
              "description": "Base64-encoded source file bytes (e.g. an APNG).",
              "type": "string"
            }
          },
          "required": [
            "data"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "webp128": {
              "description": "Base64-encoded 128x128 animated WebP, for the inline formats_v1#webp_128 slot.",
              "type": "string"
            },
            "webp512": {
              "description": "Base64-encoded 512x512 animated WebP, for the stickerFormats_v0#webp_512 slot.",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "blue.moji.collection.transcodeAnimation",
  "lexicon": 1
}
