Skip to content
HALOWERK

Image Processing

raster composited palette contrast

Raster composited contrast: return contrast ratios of visible colors against the chosen background. Use it when an agent needs to review a colored icon on its target background.

POST https://bild.halowerk.com/v1/raster-composited-palette-contrast

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
imagestringYes
backgroundstringYes
targetnumberNo
Show full input schema
{
  "type": "object",
  "properties": {
    "image": {
      "type": "string",
      "maxLength": 34000
    },
    "background": {
      "type": "string",
      "pattern": "^#[0-9a-fA-F]{6}$"
    },
    "target": {
      "type": "number",
      "minimum": 1,
      "maximum": 21
    }
  },
  "required": [
    "image",
    "background"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "image": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVR4nGNgIAXIRa3+LxS6IgGvAgxFMEFsGK8CrFah6MTlBpJ8BQIACd4s1Aujus8AAAAASUVORK5CYII=",
  "background": "#ffffff"
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →