Change language

PHP Imagick radialBlurImage () function

|
Syntax:
bool Imagick::radialBlurImage ($angle, $channel)
Parameters:this function takes two parameters as above and described below:
  • $angle:this parameter stores the angle value.
  • $channel:This parameter provides a channel constant that is valid for channel mode. More than one channel can be combined using the bitwise operator. The default channel in the Imagick function is Imagick::CHANNEL_DEFAULT.
Return value:This function returns True on success.Original image:

Below are programs illustrating the Imagick radialBlurImage() functionin PHP:
Program 1:  
// require_once (’ path / vendor / autoload.php ’); 
// Set header content header ( ’Content-type: image / png’ );  
// Create a new Imagick object $image = new Imagick ( https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-19.png );  
// Using the radialBlurImage function $image -> radialBlurImage (5);  
// Display the output image echo $image ; ?>
Output: Program 2:  
// require_once (’ path / vendor / autoload.php ’); 
// Create a new Imagick object $imagick = new Imagick ( ’img / engineerforengineer.png’ );  
// Using the radialBlurImage function $imagick -> radialBlurImage (6, 10);  
// Function to write the image $imagick -> writeImage ( ’radialBlurImage1.png’ );  
// Destroy Imagick $imagick -> destroy(); ?>
Output: Link: http://php.net/manual/en/imagick.radialblurimage.php