PHP | Imagick medianFilterImage() Function Last Updated : 27 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::medianFilterImage() function is an inbuilt function in PHP which applies a digital filter that improves the quality of a noisy image. Syntax: bool Imagick::medianFilterImage( float $radius ) Parameters: The function accepts a single parameter $radius which holds the radius of the pixel neighborhood. Return Value: This function returns TRUE on success. Errors/Exceptions: This function throws an ImagickException on error. Below program illustrates the Imagick::medianFilterImage() function in PHP: Program: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/20190823154611/geeksforgeeks24.png'); // Applying the digital filter to the image $imagick->medianFilterImage(10); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Reference: https://www.php.net/manual/en/imagick.medianfilterimage.php Comment More infoAdvertise with us Next Article PHP | Imagick medianFilterImage() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Gmagick medianfilterimage() Function The Gmagick::medianfilterimage() function is an inbuilt function in PHP which is used to apply a digital filter that improves the quality of a noisy image. This filter replaces each pixel by the median of its neighboring pixels which is defined by the radius. Syntax: void Gmagick::medianfilterimage( 2 min read PHP | Imagick minifyImage() Function The Imagick::minifyImage() function is an inbuilt function in PHP which is used to scale an image proportionally to half of its size. This function resizes the image into one-half of its original size. Syntax:Â Â bool Imagick::minifyImage( void ) Parameters: This function does not accepts any paramet 1 min read PHP | Imagick mapImage() Function The Imagick::mapImage() function is an inbuilt function in PHP which is used to replace the colors of an image with the closest color from a reference image. Syntax: bool Imagick::mapImage( Imagick $map, float $dither ) Parameters: This function accepts two parameters as mentioned above and describe 1 min read PHP | Imagick newImage() Function The Imagick::newImage() function is an inbuilt function in PHP which is used to creates a new image. This function creates a new image and associates ImagickPixel value as the background color. Syntax:Â bool Imagick::newImage( $cols, $rows, $background, $format ) Parameters: This function accepts fo 1 min read PHP | Imagick mosaicImages() Function The Imagick::mosaicImages() function is an inbuilt function in PHP which is used to form a mosaic from images. This function uses an image sequence to form a single coherent picture. Syntax: Imagick Imagick::mosaicImages( void ) Parameters: This function does not accepts any parameters. Return Value 1 min read Like