HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::orderedDitherImage

← opaquePaintImage   orderedPosterizeImage →

Example

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