You are here

function _image_imagemagick_alter_invoke in Image 7

Same name and namespace in other branches
  1. 5.2 image.imagemagick.inc \_image_imagemagick_alter_invoke()
  2. 5 image.imagemagick.inc \_image_imagemagick_alter_invoke()
  3. 6 image.imagemagick.inc \_image_imagemagick_alter_invoke()

Invoke hook_imagemagick_alter().

Implementors of hook_imagemagick_alter() should accept three parameters: $op, $filepath and &$args (passed by reference), which are described below.

Parameters

$op: String with the operation: 'resize', 'crop', 'rotate'.

$filepath: String containing the path to the image that is being processed.

$args: Array containing ImageMagick options.

Return value

Array of modified arguments.

3 calls to _image_imagemagick_alter_invoke()
image_imagemagick_crop in ./image.imagemagick.inc
Crop an image to the specified dimensions.
image_imagemagick_resize in ./image.imagemagick.inc
Resize an image to the given width and height.
image_imagemagick_rotate in ./image.imagemagick.inc
Rotate an image.

File

./image.imagemagick.inc, line 84

Code

function _image_imagemagick_alter_invoke($op, $filepath, $args) {
  foreach (module_implements('imagemagick_alter') as $module) {
    $function = $module . '_imagemagick_alter';
    $function($op, $filepath, $args);
  }
  return $args;
}