1 image.inc image_desaturate(stdClass $image)

Converts an image to grayscale.

Parameters

$image: An image object returned by image_load().

Return value

TRUE on success, FALSE on failure.:

See also

image_load()

image_gd_desaturate()

Related topics

File

core/includes/image.inc, line 374
API for manipulating images.

Code

function image_desaturate(stdClass $image) {
  return image_toolkit_invoke('desaturate', $image);
}