PHP | Imagick radialBlurImage() Function
The Imagick::radialBlurImage() function is an inbuilt function in PHP which is used to create radial blur image.
Syntax:
bool Imagick::radialBlurImage( $angle, $channel )
Parameters: This function accepts two parameters as mentioned above and described below:
- $angle: This parameter stores the value of the angle.
- $channel: This parameter provides the channel constant that is valid for channel mode. More then one channel can be combined using bitwise operator. The defaults channel in Imagick function is Imagick::CHANNEL_DEFAULT.
Return Value: This function returns True on success.
Original Image:

Below programs illustrate the Imagick radialBlurImage() function in PHP:
Program 1:
<?php // require_once('path/vendor/autoload.php'); // Set header content header('Content-type: image/png'); // Crete new Imagick Object $image = new Imagick( // Use radialBlurImage function $image->radialBlurImage(5); // Display output image echo $image; ?> |
Output:

Program 2:
<?php // require_once('path/vendor/autoload.php'); // Create new Imagick Object $imagick = new Imagick('img/geeksforgeeks.png'); // Use radialBlurImage function $imagick->radialBlurImage(6, 10); // Function to write image $imagick->writeImage('radialBlurImage1.png'); // Destroy Imagick object $imagick->destroy(); ?> |
Output:
Reference: http://php.net/manual/en/imagick.radialblurimage.php
Recommended Posts:
- PHP | Imagick getImageSignature() Function
- PHP | Imagick randomThresholdImage() Function
- PHP | Imagick identifyImage() Function
- PHP | Imagick rollImage() Function
- PHP | Imagick reduceNoiseImage() Function
- PHP | Imagick rotationalBlurImage() Function
- PHP | Imagick getImageTicksPerSecond() Function
- PHP | Imagick getInterlaceScheme() Function
- PHP | Imagick modulateImage() Function
- PHP | Imagick queryFonts() Function
- PHP | Imagick recolorImage() Function
- PHP | Imagick opaquePaintImage() Function
- PHP | Imagick raiseImage() Function
- PHP | Imagick haldClutImage() Function
- PHP | Imagick resampleImage() 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.



