Skip to content
HALOWERK

Image Processing

indexed png dominant painted color

PNG palette frequency returns the most common nontransparent RGBA value and its visible-pixel share. Use it when an agent needs the dominant painted colour of an icon.

POST https://bild.halowerk.com/v1/indexed-png-dominant-painted-color

Inputs

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

Open original schema

Published input example

{
  "png": "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAMAAACeL25MAAAAElBMVEUAAAASZZTpoBQbjEsbjEuWoKqG5LLQAAAABnRSTlMA//+AgP+Nc6qqAAAAGElEQVR4nGNgYGRkYGBkYmIEEswgJiMDAAC7ABLWpWFfAAAAAElFTkSuQmCC"
}

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": {
        "rgba": {
          "type": [
            "string",
            "null"
          ]
        },
        "pixels": {
          "type": "integer"
        },
        "visible_share": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "rgba",
        "pixels",
        "visible_share"
      ]
    },
    "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 →