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
Related topics
File
- core/
includes/ image.inc, line 430 - API for manipulating images.
Code
function image_desaturate(stdClass $image) {
return image_toolkit_invoke('desaturate', $image);
}