Skip to content
HALOWERK

Bildwerk

raster floyd steinberg diffusion

Return binary grayscale pixels and propagated quantization residual using left-to-right error diffusion. Supplied integer buffers only; no image download or model call.

POST https://bild.halowerk.com/v1/raster-floyd-steinberg-diffusion

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
grayarrayYes
thresholdnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "gray": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255
        },
        "maxItems": 100,
        "minItems": 1
      },
      "maxItems": 100,
      "minItems": 1
    },
    "threshold": {
      "type": "number",
      "minimum": 0,
      "maximum": 255
    }
  },
  "required": [
    "gray",
    "threshold"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "gray": [
    [
      100,
      100
    ],
    [
      100,
      100
    ]
  ],
  "threshold": 127.5
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →