PHP | Imagick radialBlurImage() Function

The Imagick::radialBlurImage() function is an inbuilt function in PHP which is used to create radial blur image.


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:

Program 1:

// require_once('path/vendor/autoload.php');
// Set header content
header('Content-type: image/png');
// Crete new Imagick Object
$image = new Imagick(
// Use radialBlurImage function
// Display output image
echo $image;



Program 2:

// 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
// Destroy Imagick object

Radial Blur Image

Reference: http://php.net/manual/en/imagick.radialblurimage.php

This article is attributed to GeeksforGeeks.org

You Might Also Like

leave a comment



load comments

Subscribe to Our Newsletter