You are here

function image_advance_resize_effect in image effect 7

1 string reference to 'image_advance_resize_effect'
image_effect_image_effect_info in ./image_effect.module
Implements hook_image_effect_info()

File

./image_effect.module, line 35
Image Effect module file.

Code

function image_advance_resize_effect(&$image, $data) {
  if (!image_advance_resize($image, $data['width'], $data['height'], $data['background'])) {
    watchdog('image', 'Image resize failed using the %toolkit toolkit on %path (%mimetype, %dimensions)', array(
      '%toolkit' => $image->toolkit,
      '%path' => $image->source,
      '%mimetype' => $image->info['mime_type'],
      '%dimensions' => $image->info['width'] . 'x' . $image->info['height'],
    ), WATCHDOG_ERROR);
    return FALSE;
  }
  return TRUE;
}