You are here

function hook_imagemagick_save_alter in ImageMagick 7

Alter an image before it is saved by the ImageMagick toolkit.

Parameters

$image: An image object.

$context: An associative array of information about the image being saved:

  • destination: The file URI where $image will be saved to.

See also

image_save()

image_imagemagick_save()

1 invocation of hook_imagemagick_save_alter()
image_imagemagick_save in ./imagemagick.module
Writes an image resource to a destination file.

File

./imagemagick.api.php, line 37
API documentation for the ImageMagick module.

Code

function hook_imagemagick_save_alter(stdClass $image, $context = array()) {
}