HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Despeckle image

← deskewImage   distortImage →
Reduces the speckle noise in an image while preserving the edges of the original image.

Example

function despeckleImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->despeckleImage();
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}