function image_imagick_desaturate in Imagick 7
Convert an image resource to grayscale.
Note that transparent GIFs loose transparency when desaturated.
Parameters
$image: An image object. The $image->resource value will be modified by this call.
Return value
TRUE or FALSE, based on success.
See also
File
- effects/
imagick.desaturate.inc, line 15
Code
function image_imagick_desaturate(stdClass $image) {
return _imagick_process_frames($image, 'image_imagick_desaturate_process', func_get_args());
}