HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::spreadImage

← spliceImage   statisticImage →
Special effects method that randomly displaces each pixel in a block defined by the radius parameter.

Example

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