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