Imagick::enhanceImage

(PECL imagick 2.0.0)
Improves the quality of a noisy image
bool Imagick::enhanceImage ( void )

Applies a digital filter that improves the quality of a noisy image.

Returns:

Returns TRUE on success.

Exception:

Throws ImagickException on error.

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

?>

doc_php
2016-02-24 16:00:54
Comments
Leave a Comment

Please login to continue.