PHP | Imagick blurImage() function
The Imagick::blurImage() function is an inbuilt function in PHP which is used to add blur filter to the image. This function returns True on success.
Syntax:
bool Imagick::blurImage( $radius, $sigma, $channel )
Parameters: This function accepts three parameters as mentioned above and described below:
- $radius: This parameter is used to set blur radius in an image.
- $sigma: It sets the standard deviation.
- $channel: This parameter set the channel type constant. If it is not supplied then all channels are blurred.
Return Value: This parameter returns True on success.
Below programs illustrate the Imagick::blurImage() function in PHP:
Program 1:
<?php // Create an Imagick object $image = new Imagick( header('Content-type: image/jpeg'); // Use blurImage function $image->blurImage(5, 3); // Display the output image echo $image; ?> |
Output:

Program 2:
<?php // Create an Imagick object $image = new Imagick( header('Content-type: image/jpeg'); // Use blurImage function $image->blurImage(7, 3); // Display the output image echo $image; ?> |
Output:

Related Articles:
Reference: http://php.net/manual/en/imagick.blurimage.php
Recommended Posts:
- PHP | Gmagick blurimage() Function
- PHP | Imagick randomThresholdImage() Function
- PHP | Imagick setImageMatte() Function
- PHP | Imagick queryFonts() Function
- PHP | Imagick gammaImage() Function
- PHP | Imagick rotationalBlurImage() Function
- PHP | Imagick radialBlurImage() Function
- PHP | Imagick appendImages() Function
- PHP | Imagick current() Function
- PHP | Imagick modulateImage() Function
- PHP | Imagick getInterlaceScheme() Function
- PHP | Imagick getImageTicksPerSecond() Function
- PHP | Imagick getImageSignature() Function
- PHP | Imagick cropImage() Function
- PHP | Imagick getImageRenderingIntent() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



