If you have any doubts on how to use this, make sure you read our Getting Started guide.

  • :options is one of the fragments available for use on ImageBoss API.


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 option with any operation available.

threshold accepts two values. :amount which is any value between 1 and 255. and :grayscale which is a boolean.

Example /with /700 /threshold:125 / /with /700 /threshold:125-true /



Modified (grayscale: true)