GoLang Imagick::equalizeImage

request it (291)
GoLang replacement for PHP's Imagick::equalizeImage [edit | history]



Do you know a GoLang replacement for PHP's Imagick::equalizeImage? Write it!

PHP Imagick::equalizeImage

PHP original manual for Imagick::equalizeImage [ show | php.net ]

Imagick::equalizeImage

(PECL imagick 2.0.0)

Imagick::equalizeImageEqualizes the image histogram

Description

bool Imagick::equalizeImage ( void )

Equalizes the image histogram.

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws ImagickException on error.

Examples

Example #1 Imagick::equalizeImage()

<?php
function equalizeImage($imagePath) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->equalizeImage();
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>