How to desaturate an image with Imagick (PHP)

If you want to desaturate an image using the Imagick library, you could use this simple code:

$image = new Imagick();
$image->readImage("test.jpg");
$image->setImageType(Imagick::IMGTYPE_GRAYSCALE);

Comments

No comments yet, you can leave yours: