function imagecache_convert_image in ImageCache Actions 6
Same name and namespace in other branches
- 5.3 imagecache_coloractions.module \imagecache_convert_image()
- 5.2 imagecache_coloractions.module \imagecache_convert_image()
- 6.2 coloractions/imagecache_coloractions.module \imagecache_convert_image()
Implementation of hook_image()
Process the imagecache action on the passed image
File
- ./
imagecache_coloractions.module, line 295 - 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']];
return TRUE;
}