(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();
}
?>
Please login to continue.