function image_imagemagick_convert in ImageCache Actions 7
Same name and namespace in other branches
- 8 coloractions/imagecache_coloractions.module \image_imagemagick_convert()
Imagemagick toolkit specific implementation of the color shift effect.
Converting the image format with imagemagick is done by prepending the output format to the target file separated by a colon (:). This is done with hook_imagemagick_arguments_alter(), see below.
Parameters
stdClass $image:
array $data: The parameters for this effect.
Return value
bool true on success, false otherwise.
File
- coloractions/
imagecache_coloractions.module, line 818
Code
function image_imagemagick_convert(stdClass $image, array $data) {
$image->ops['output_format'] = $image->info['extension'];
$image->ops['custom_quality_value'] = (int) $data['quality'];
return TRUE;
}