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);
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