PHP | Imagick radialBlurImage() Function
Last Updated :
28 Apr, 2023
The Imagick::radialBlurImage() function is an inbuilt function in PHP that is used to create radial blur images.
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 than one channel can be combined using a bitwise operator. The default channel in the Imagick function is Imagick::CHANNEL_DEFAULT.
Return Value: This function returns True on success.
Original Image:
The below programs illustrate the Imagick radialBlurImage() function in PHP:
Program 1:
php
<?php
header( 'Content-type: image/png' );
$image = new Imagick(
$image ->radialBlurImage(5);
echo $image ;
?>
|
Output:
Program 2:
php
<?php
$imagick = new Imagick( 'img/geeksforgeeks.png' );
$imagick ->radialBlurImage(6, 10);
$imagick ->writeImage( 'radialBlurImage1.png' );
$imagick ->destroy();
?>
|
Output:
Reference: http://php.net/manual/en/imagick.radialblurimage.php
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...