Skip navigation
Help

image_desaturate

7 image.inc image_desaturate(stdClass $image)

Convert an image to grayscale.

Parameters

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

Return value

TRUE or FALSE, based on success.

See also

image_load()

image_gd_desaturate()

Related topics

2 calls to image_desaturate()

5 string references to 'image_desaturate'

File

drupal/includes/image.inc, line 323
API for manipulating images.

Code

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