function reduceNoiseImage($image_path, $reduceNoise)
{
    $imagick = new \Imagick(realpath($image_path));
    @$imagick->reduceNoiseImage($reduceNoise);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}