HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Blur image

← blueShiftImage   borderImage →
Adds blur filter to image. Optional third parameter to blur a specific channel.
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();
}