function hook_imagemagick_pre_parse_file_alter in ImageMagick 8
Same name and namespace in other branches
- 8.2 imagemagick.api.php \hook_imagemagick_pre_parse_file_alter()
Alter the settings before an image is parsed by the ImageMagick toolkit.
ImageMagick does not support stream wrappers so this hook allows modules to resolve URIs of image files to paths on the local filesystem. Modules can also decide to move files from remote systems to the local file system to allow processing.
Parameters
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit $toolkit: The Imagemagick toolkit instance to alter.
See also
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::parseFile()
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getSource()
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::setSourceLocalPath()
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getSourceLocalPath()
1 function implements hook_imagemagick_pre_parse_file_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_imagemagick_pre_parse_file_alter()
- ImagemagickToolkit::parseFile in src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php - Determines if a file contains a valid image.
File
- ./
imagemagick.api.php, line 29 - API documentation for the ImageMagick module.
Code
function hook_imagemagick_pre_parse_file_alter(\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit $toolkit) {
}