Applies a digital filter that improves the quality of a noisy image.
function enhanceImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->enhanceImage();
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}