Skip to content
HALOWERK

Bildwerk

raster crop transform map

Return transformed crop coordinates after rotation and scaling.

POST https://bild.halowerk.com/v1/raster-crop-transform-map

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
source_sizearrayYes
croparrayYes
rotationSee schemaYes
scalenumberYes
pointsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "source_size": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100000
      },
      "maxItems": 2,
      "minItems": 2
    },
    "crop": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100000
      },
      "maxItems": 4,
      "minItems": 4
    },
    "rotation": {
      "enum": [
        0,
        90,
        180,
        270
      ]
    },
    "scale": {
      "type": "number",
      "minimum": 0.001,
      "maximum": 100
    },
    "points": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -100000,
          "maximum": 100000
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "source_size",
    "crop",
    "rotation",
    "scale",
    "points"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "source_size": [
    100,
    80
  ],
  "crop": [
    10,
    20,
    40,
    30
  ],
  "rotation": 90,
  "scale": 2,
  "points": [
    [
      10,
      20
    ],
    [
      50,
      50
    ]
  ]
}

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 →