Image PNM Threshold
Applies deterministic binary thresholding to a base64 portable anymap image and returns a base64 P2 output.
Run tool
Form input
Direct JSON or Markdown
Submit JSON directly or Markdown that can be converted into JSON.
Work steps
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
base64 | base64 | Yes | Base64 P2 or P3 image |
threshold | integer | No | Threshold value |
Outputs
| Name | Type | Description |
|---|---|---|
format | text | Format |
threshold | integer | Threshold |
base64 | base64 | Base64 thresholded image |
work | array | Work |
Sample request
{
"base64": "data:image/x-portable-anymap;base64,UDMKMiAyCjI1NQoyNTUgMCAwICAwIDI1NSAwICAwIDAgMjU1ICAyNTUgMjU1IDI1NQo=",
"threshold": 128
}