HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Equalize image

← enhanceImage   evaluateImage →
Equalizes the image histogram.

Example

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