Skip to content
HALOWERK

Image Processing

indexed png swatch at index

PNG palette lookup returns the encoded RGB bytes and transparency for a chosen palette slot. Use it when an agent needs a palette swatch for a raster asset.

POST https://bild.halowerk.com/v1/indexed-png-swatch-at-index

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pngstringYes
indexintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "png": {
      "type": "string",
      "maxLength": 64000,
      "minLength": 1
    },
    "index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255
    }
  },
  "required": [
    "png",
    "index"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "png": "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAMAAACeL25MAAAAElBMVEUAAAASZZTpoBQbjEsbjEuWoKqG5LLQAAAABnRSTlMA//+AgP+Nc6qqAAAAGElEQVR4nGNgYGRkYGBkYmIEEswgJiMDAAC7ABLWpWFfAAAAAElFTkSuQmCC",
  "index": 1
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "slots": {
          "type": "integer"
        },
        "rgba": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "slots",
        "rgba"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub →