You are here

function imagecache_desaturate_image in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_actions.inc \imagecache_desaturate_image()

File

./imagecache_actions.inc, line 213

Code

function imagecache_desaturate_image(&$image, $data = array()) {
  if (!imageapi_image_desaturate($image)) {
    watchdog('imagecache', 'imagecache_desaturate failed. image: %image, data: %data.', array(
      '%image' => $image->source,
      '%data' => print_r($data, TRUE),
    ), WATCHDOG_ERROR);
    return FALSE;
  }
  return TRUE;
}