CodableAIA Stacksona Company

Image PNM Info

Parses a base64 portable anymap image in P2 or P3 form and returns exact dimensions, channels, and max value.

Run tool

Form input

Output JSON


          

Work steps

    Inputs

    NameTypeRequiredDescription
    base64base64YesBase64 P2 or P3 image

    Outputs

    NameTypeDescription
    formattextFormat
    widthintegerWidth
    heightintegerHeight
    channelsintegerChannels
    workarrayWork

    Sample request

    {
      "base64": "data:image/x-portable-anymap;base64,UDMKMiAyCjI1NQoyNTUgMCAwICAwIDI1NSAwICAwIDAgMjU1ICAyNTUgMjU1IDI1NQo="
    }