You are here

function image_effect_image_toolkit_invoke in image effect 7

1 call to image_effect_image_toolkit_invoke()
image_advance_resize in ./image_effect.module

File

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

Code

function image_effect_image_toolkit_invoke($method, stdClass $image, array $params = array()) {
  $function = 'image_effect_' . $image->toolkit . '_' . $method;
  if (function_exists($function)) {
    array_unshift($params, $image);
    return call_user_func_array($function, $params);
  }
  watchdog('image', 'The selected image handling toolkit %toolkit can not correctly process %function.', array(
    '%toolkit' => $image->toolkit,
    '%function' => $function,
  ), WATCHDOG_ERROR);
  return FALSE;
}