function imagecache_crop_image in ImageCache 6.2
Same name and namespace in other branches
- 5.2 imagecache_actions.inc \imagecache_crop_image()
File
- ./
imagecache_actions.inc, line 192
Code
function imagecache_crop_image(&$image, $data) {
if (!imageapi_image_crop($image, $data['xoffset'], $data['yoffset'], $data['width'], $data['height'])) {
watchdog('imagecache', 'imagecache_crop failed. image: %image, data: %data.', array(
'%image' => $image->source,
'%data' => print_r($data, TRUE),
), WATCHDOG_ERROR);
return FALSE;
}
return TRUE;
}