Softens the edges of the image in vignette style. Available since 6.2.9
Touch/mouse over to see original View modified in new window.
Image
Black point
WhitePoint
X
Y
Softens the edges of the image in vignette style. Available since 6.2.9
Parameters
blackPointfloatThe black point.
whitePointfloatThe white point
xintX offset of the ellipse
yintY offset of the ellipse
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();
}