Touch/mouse over to see original View modified in new window.
Image
Swirl
function swirlImage($imagePath, $swirl)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->swirlImage($swirl);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}