HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Charcoal image

← channelFxImage   chopImage →
Simulates a charcoal drawing.

Example

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