HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::localContrastImage

← levelizeImage   linearStretchImage →

Example

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