Imagick::despeckleImage
PHP function
Edit on GitHub ✎
(PECL imagick 2, PECL imagick 3)
Reduces the speckle noise in an image
Description
Imagick::despeckleImage(): bool
Reduces the speckle noise in an image while preserving the edges of the original image.
Parameters Parameters
Return Values
Success
Errors/Exceptions
Throws
Examples
php
<?php
function despeckleImage($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->despeckleImage();
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>