← subImageMatchswirlImageWithMethod →
Swirls the pixels about the center of the image, where degrees indicates
the sweep of the arc through which each pixel is moved. You get a more
dramatic effect as the degrees move from 1 to 360.
Example
function swirlImage($image_path, $swirl)
{
$imagick = new \Imagick(realpath($image_path));
$imagick->swirlImage($swirl);
header("Content-Type: image/jpeg");
echo $imagick->getImageBlob();
}