function localContrastImage($image_path, $radius, $strength)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->localContrastImage(
        $radius,
        $strength
    );
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}