HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Blur image

← blueShiftImage   borderImage →
Adds blur filter to image. Optional third parameter to blur a specific channel.

Example

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