HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Blue shift image

← blackThresholdImage   blurImage →
Mutes the colors of the image to simulate a scene at nighttime in the moonlight.

Example

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