Imagick::swirlImage
Swirls the pixels about the center of the image
Description
bool Imagick::swirlImage(float $degrees
)
Return Values
Returns true
on success.
Errors/Exceptions
Throws ImagickException on error.
Examples
Example #1 Imagick::swirlImage
<?php
function swirlImage($imagePath, $swirl) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->swirlImage($swirl);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>