Im looking for a way to replicate the Photoshop Grayscale/Desaturate feature in PHP, I have MagickWand installed on the server.
I have tried numerous different methods (including iterating the pixels) but the contrast is always altered (brighter) when I open the modified image in photoshop.
I'm thinking it might have something to do with the embedded color profile not being saved??
$resource = NewMagickWand();
MagickReadImage( $resource, $file);
MagickQuantizeImage( $resource, 16772216, MW_GRAYColorspace, 8, true, true );
header( 'Content-Type: image/jpeg' );
MagickEchoImageBlob( $resource );
Anyone know of a true grayscale that can be done via PHP?? Solution doesn't have to use Imagemagick
Appreciated