Index: imagecache.module =================================================================== --- imagecache.module (revision 104) +++ imagecache.module (working copy) @@ -196,6 +196,12 @@ watchdog('imagecache', t('Imagecache crop action ID %id failed.', array('%id' => $action['actionid'])), WATCHDOG_ERROR); } break; + + case 'desaturate': + if (!image_desaturate($tmpdestination, $tmpdestination)) { + watchdog('imagecache', t('Imagecache desaturate action ID %id failed.', array('%id' => $action['actionid'])), WATCHDOG_ERROR); + } + break; } } file_move($tmpdestination, $destination); @@ -675,7 +681,11 @@ ); break; - case 'watermark': + case 'desaturate': + // no options + break; + + case 'watermark': //Think about this one... } $form[$actionid]['remove'] = array( @@ -689,11 +699,12 @@ $helptext['scale'] = t('Scale: Resize an image maintaining the original aspect-ratio (only one value necessary).'); $helptext['resize'] = t('Resize: Resize an image to an exact set of dimensions, ignoring aspect ratio.'); $helptext['crop'] = t('Crop: Crop an image to the rectangle specified by the given offsets and dimensions.'); + $helptext['desaturate'] = t('Desaturate: Convert an image to gray-scale.'); $description = '