PHP | Imagick whiteThresholdImage Function Last Updated : 24 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::whiteThresholdImage() function is an inbuilt function in PHP which is used to convert all pixels above the threshold value into white. This function force all pixels above the threshold value into white while leaving all pixels below the threshold unchanged. Syntax: bool Imagick::whiteThresholdImage( $threshold ) Parameters: This function accepts single parameter $threshold which is used to define the changes in pixel value. Return Value: This function returns True on success. Below programs illustrates the Imagick::whiteThresholdImage() function in PHP: Program: php <?php // Create an Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Use whiteThresholdImage function $imagick->whiteThresholdImage('red'); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick vignetteImage() Function PHP | Imagick shadeImage() Function Reference: http://php.net/manual/en/imagick.whitethresholdimage.php Comment More infoAdvertise with us Next Article PHP | Imagick whiteThresholdImage Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Practice Tags : Misc Similar Reads PHP | Imagick randomThresholdImage() Function The Imagick::randomThresholdImage() function is an inbuilt function in PHP that is used to change the value of individual pixels based on the intensity of each pixel compared to the threshold. The result is a high-contrast, two-color image. Syntax: bool Imagick::randomThresholdImage( $low, $high, 2 min read PHP | Imagick writeImage() Function The Imagick::writeImage() function is an inbuilt function in PHP which is used to write an image to the specified filename. This function saves the image file in the same folder where your PHP script is located. Syntax: bool Imagick::writeImage( string $filename = NULL ) Parameters: This function ac 1 min read PHP | Imagick textureImage() Function The Imagick::textureImage() function is an inbuilt function in PHP which creates repeatedly tiles the texture image. Syntax: Imagick Imagick::textureImage( $texture_wand ) Parameter: This function accepts single parameter $texture_wand. It is an Imagick object to use as texture image. Return Value: 1 min read PHP | Imagick readImage() Function The Imagick::readImage() function is an inbuilt function in PHP which is used to read an image from filename. Syntax: bool Imagick::readImage( string $filename ) Parameters:This function accepts a single parameter $filename which holds the name of the file. It can also accept URL of the file. Return 1 min read PHP | Imagick rollImage() Function The Imagick::rollImage() function is an inbuilt function in PHP which is used to roll an image. Syntax: bool Imagick::rollImage( $x, $y ) Parameters: This function accepts two parameters as mentioned above and described below: $x: This parameter stores the value of the X offset. $y: This parameter s 1 min read Like