Page 1 of 1

monochrome from jpg's

Posted: 2012-04-27T04:07:56-07:00
by alan
Is there a 'Grayscale' function within the php version of ImageMagick which does the same as the command line function:

exec("convert $image -type Grayscale $outimage ")

I have been using '$im1->imagefilter(100,0,100);' but this just desaturates the image and produces a low contrast result.

thanks alan dunn

Re: monochrome from jpg's

Posted: 2012-04-27T04:30:34-07:00
by Bonzo
Checkout colorspace

Code: Select all

-colorspace gray
Image

Out of interest I have examples of operator usage with php on my website: Operators

Re: monochrome from jpg's

Posted: 2012-04-27T04:58:38-07:00
by alan
thanks, I'll give it a go.

Re: monochrome from jpg's

Posted: 2012-04-29T20:10:10-07:00
by anthony
Do you mean in MagickWand for PHP? IMagick for PHP? or Shell ImageMagick from PHP?