PHP | Imagick unsharpMaskImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::unsharpMaskImage() function is an inbuilt function in PHP which is used to sharpen an image. This function convolves the image with a Gaussian operator of the given radius and standard deviation. Syntax: bool Imagick::unsharpMaskImage( $radius, $sigma, $amount, $threshold, $channel ) Parameters: This function accepts five parameters as mentioned above and described below: $radius: This parameter is used to set the radius of image where set the unsharp masking image. $sigma: This parameter is used to set the standard deviation. $amount: This parameter is used to set the amount to change the image. $threshold: This parameter set the threshold value. $channel: This parameter set the channel of image. CHANNEL_DEFAULT is used as a default channel. Return Value: This function return True on success. Errors/Exceptions: This function throws ImagickException on error. Below programs illustrates the Imagick::unsharpMaskImage() function in PHP: Program: php <?php // Create an Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Use unsharpMaskImage function $imagick->unsharpMaskImage(5, 1, 5, 0); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick getImageColors() Function PHP | Imagick autoLevelImage() Function Reference: http://php.net/manual/en/imagick.unsharpmaskimage.php Comment More infoAdvertise with us Next Article PHP | Imagick unsharpMaskImage() 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 stripImage() Function The Imagick::stripImage() function is an inbuilt function in PHP which is used to strip all profiles and comments from an image. Syntax: bool Imagick::stripImage( void ) Parameters:This function doesnât accepts any parameter. Return Value: This function returns TRUE on success. Exceptions: This func 1 min read PHP | Imagick::shaveImage() Function The Imagick::shaveImage() function is an inbuilt function in PHP which is used to shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. Syntax: bool Imagick::shaveImage( $columns, $rows ) Parameters: This function ac 1 min read PHP | Imagick remapImage() Function The Imagick::remapImage() function is an inbuilt function in PHP which is used to replace colors in an image with those defined by replacement. The colors are replaced with the closest possible color. Syntax: bool Imagick::remapImage( Imagick $replacement, int $dither ) Parameters:This function acce 2 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 trimImage() Function The Imagick::trimImage() function is an inbuilt function in PHP which is used to remove the edges from the image. Syntax: bool Imagick::trimImage( $fuzz ) Parameters: This function accepts single parameter $fuzz. The fuzz member of image defines how much tolerance is acceptable to consider two color 1 min read Like