php8.5
Home/ Manual/ imagick / imagick/ Imagick::enhanceImage

Imagick::enhanceImage

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Improves the quality of a noisy image

Description

Imagick::enhanceImage(): bool

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

Parameters Parameters

Return Values

Success

Errors/Exceptions

Throws

Examples

Imagick::enhanceImage()

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

?>

Source: reference/imagick/imagick/enhanceimage.xml · from the official PHP manual (php/doc-en)