Filters
If you have any doubts on how to use this, make sure you read our Getting Started guide.- is one of the fragments available for use on ImageBoss API.
Threshold
Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0. Thresholding is the simplest method of image segmentation. From a grayscale image, thresholding can be used to create binary images. You can combine this with any operation available.accepts two values. :amount which is any value between 1 and 255. and :grayscale which is a boolean.
API Examples
https://img.imageboss.me /with /700 /examples/05.jpg
https://img.imageboss.me /with /700 /examples/05.jpg
Using ImageBoss Web Library
<img
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
data-imageboss-src="/examples/02.jpg"
data-imageboss-operation="width"
data-imageboss-options="threshold:125"
width="700"
/>
Original
Modified
Modified (grayscale: true)