function imagecache_convert_image in ImageCache Actions 6.2
Same name and namespace in other branches
- 5.3 imagecache_coloractions.module \imagecache_convert_image()
- 5.2 imagecache_coloractions.module \imagecache_convert_image()
- 6 imagecache_coloractions.module \imagecache_convert_image()
Implementation of hook_image()
Process the imagecache action on the passed image
File
- coloractions/
imagecache_coloractions.module, line 408 - Additional actions for imagecache processing.
Code
function imagecache_convert_image(&$image, $data = array()) {
$formats = imagecache_file_formats();
$image->info['mime_type'] = $data['format'];
$image->info['extension'] = $formats[$data['format']];
$image->quality = $data['quality'];
return TRUE;
}