Imagick::despeckleImage

(PECL imagick 2.0.0)
Reduces the speckle noise in an image
bool Imagick::despeckleImage ( void )

Reduces the speckle noise in an image while preserving the edges of the original image.

Returns:

Returns TRUE on success.

Exception:

Throws ImagickException on error.

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

?>

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

Please login to continue.