Touch/mouse over to see original View modified in new window.
Image
Black point
WhitePoint
X
Y
function vignetteImage($imagePath, $blackPoint, $whitePoint, $x, $y)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->vignetteImage($blackPoint, $whitePoint, $x, $y);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}