function hook_imagemagick_arguments_alter in ImageMagick 7
Same name and namespace in other branches
- 8 imagemagick.api.php \hook_imagemagick_arguments_alter()
- 8.2 imagemagick.api.php \hook_imagemagick_arguments_alter()
Alter the arguments to the ImageMagick 'convert' command-line program.
Parameters
$args: An array of arguments to the ImageMagick 'convert' command-line program.
$context: An associative array of information about the image being altered:
- source: The filesystem path of the original image.
- source_original: The original file URI of the image.
- destination: The filesystem path for the derivative image.
- destination_original: The original file URI for the derivative image.
- destination_format: The target image format for the derivative image. Defaults to an empty string.
ImageMagick automatically converts the target image to the format denoted by the file extension. However, since changing the file extension is not always an option (e.g., for derivative images of core Image module styles), you can specify an alternative derivative image format in $context['destination_format']. 'destination_format' is a string denoting a file extension. If not empty, it is passed to ImageMagick's convert binary in the syntax "[destination_format]:[destination]".
See also
http://www.imagemagick.org/script/command-line-processing.php#output
http://www.imagemagick.org/Usage/files/#save
1 function implements hook_imagemagick_arguments_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- imagemagick_advanced_imagemagick_arguments_alter in imagemagick_advanced/
imagemagick_advanced.module - Implements hook_imagemagick_arguments_alter().
1 invocation of hook_imagemagick_arguments_alter()
- _imagemagick_convert in ./
imagemagick.module - Calls the convert executable with the specified filter.
File
- ./
imagemagick.api.php, line 67 - API documentation for the ImageMagick module.
Code
function hook_imagemagick_arguments_alter($args, $context = array()) {
}