function image_imagemagick_invert in ImageCache Actions 7
Same name and namespace in other branches
- 8 coloractions/imagecache_coloractions.module \image_imagemagick_invert()
Imagemagick toolkit specific implementation of the image invert effect.
Parameters
stdClass $image: param array $data The parameters for this effect.
Return value
bool true on success, false otherwise.
File
- coloractions/
imagecache_coloractions.module, line 698
Code
function image_imagemagick_invert(stdClass $image) {
// http://www.imagemagick.org/script/command-line-options.php?#negate
$image->ops[] = "-negate";
return TRUE;
}