> For the complete documentation index, see [llms.txt](https://docs.imagemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imagemash.io/image-transform/transform-options/filters/threshold.md). Agents can also search and read this documentation through its [MCP server](https://docs.imagemash.io/~gitbook/mcp).

# Threshold

threshold - threshold\_\<level>

<table><thead><tr><th width="113.33333333333331">Value</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>level</strong></td><td>integer</td><td><p>Value can be;</p><ul><li>An integer value between 0-255, represents the single-color space.</li></ul><p>Eg. threshold_100</p></td></tr></tbody></table>

Applies Threshold filter to the image. Accepts values between 0-255

High value = more black pixels

Low value = more white pixels.

<figure><img src="https://demo.imagemash.io/w_500/jeep.png" alt=""><figcaption><p><a href="https://demo.imagemash.io/w_500/jeep.png">https://demo.imagemash.io/w_500/jeep.png</a></p></figcaption></figure>

<figure><img src="https://demo.imagemash.io/w_500,threshold_100/jeep.png" alt=""><figcaption><p><a href="https://demo.imagemash.io/w_500,threshold_100/jeep.png">https://demo.imagemash.io/w_500,threshold_100/jeep.png</a></p></figcaption></figure>
