PHP | Imagick rotationalBlurImage() Function
Last Updated :
27 Apr, 2023
The Imagick::rotationalBlurImage() function is an inbuilt function in PHP that is used to apply the blur over an image by a certain angle.
Syntax:
bool Imagick::rotationalBlurImage( $angle, $channel )
Parameters: This function accepts two parameters as mentioned above and described below:
- $angle: This parameter is used to store 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. Below programs illustrate the Imagick::rotationalBlurImage() function in PHP:
Original Image:
Program 1:
php
<?php
$imagick = new Imagick(
$imagick ->rotationalBlurImage(1);
$imagick ->rotationalBlurImage(7);
$imagick ->rotationalBlurImage(3);
header("Content-Type: image/jpg");
echo $imagick ->getImageBlob();
?>
|
Output:
Program 2:
php
<?php
$imagick = new Imagick('
https:
$imagick ->rotationalBlurImage(6, 4);
header("Content-Type: image/jpg");
echo $imagick ->getImageBlob();
?>
|
Output:
Reference: http://php.net/manual/en/imagick.rotationalblurimage.php
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...