CodableAIA Stacksona Company

Image PNM Crop

Crops a base64 portable anymap image using exact x, y, width, and height values and returns a new base64 image.

Run tool

Form input

Output JSON


          

Work steps

    Inputs

    NameTypeRequiredDescription
    base64base64YesBase64 P2 or P3 image
    xintegerYesX
    yintegerYesY
    widthintegerYesWidth
    heightintegerYesHeight

    Outputs

    NameTypeDescription
    formattextFormat
    widthintegerWidth
    heightintegerHeight
    base64base64Base64 cropped image
    workarrayWork

    Sample request

    {
      "base64": "data:image/x-portable-anymap;base64,UDMKMiAyCjI1NQoyNTUgMCAwICAwIDI1NSAwICAwIDAgMjU1ICAyNTUgMjU1IDI1NQo=",
      "x": 0,
      "y": 0,
      "width": 1,
      "height": 2
    }