note 98703 modified in function.imagick-setimagecolorspace by danbrown
| From: | danbrown@php.net | Date: | Thu, 01 Jul 2010 19:33:45 +0000 |
| Subject: | note 98703 modified in function.imagick-setimagecolorspace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170635@lists.php.net to get a copy of this message | ||
This is how to Monochrome a jpg [on Windows].. since I couldn't find it anywhere else.
<?php
header("Content-type: image/jpeg");
$IMagick = new IMagick('c:\\testing\\fruit.jpg');
$IMagick->setImageColorSpace(Imagick::COLORSPACE_GRAY);
echo $IMagick;
?>
--was--
This is how to Monochrome a jpg.. since I couldn't find it anywhere else.
header("Content-type: image/jpeg");
$IMagick = new IMagick('c:\\testing\\fruit.jpg');
$IMagick->setImageColorSpace(Imagick::COLORSPACE_GRAY);
echo $IMagick;
http://php.net/manual/en/function.imagick-setimagecolorspace.php