Skip to content
HALOWERK

Image Processing

indexed png pixel opacity classes

PNG palette opacity counts transparent, translucent and opaque pixels after palette expansion. Use it when an agent needs alpha coverage in a supplied raster.

POST https://bild.halowerk.com/v1/indexed-png-pixel-opacity-classes

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": {
        "transparent": {
          "type": "integer"
        },
        "partial": {
          "type": "integer"
        },
        "opaque": {
          "type": "integer"
        }
      },
      "required": [
        "transparent",
        "partial",
        "opaque"
      ]
    },
    "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 →