php8.5
Home/ Manual/ imagick / imagick/ Imagick::rotationalBlurImage

Imagick::rotationalBlurImage

PHP function Edit on GitHub ✎

(PECL imagick 3 >= 3.3.0)

Rotational blurs an image

Description

Imagick::rotationalBlurImage(float $angle, int $channel = Imagick::CHANNEL_DEFAULT): bool

Rotational blurs an image.

Parameters

angle

The angle to apply the blur over.

channel

Channel

Return Values

Success

Examples

Imagick::rotationalBlurImage()

php
<?php
function rotationalBlurImage($imagePath) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->rotationalBlurImage(3);
    $imagick->rotationalBlurImage(5);
    $imagick->rotationalBlurImage(7);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}

?>

Source: reference/imagick/imagick/rotationalblurimage.xml · from the official PHP manual (php/doc-en)