You are here

function image_imagemagick_desaturate in ImageMagick 7

Converts an image into grayscale.

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

image_desaturate()

File

./imagemagick.module, line 287
Provides ImageMagick integration.

Code

function image_imagemagick_desaturate(stdClass $image) {
  $image->ops[] = '-colorspace GRAY';
  return TRUE;
}