public function ImagemagickEventSubscriber::ensureSourceLocalPath in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/EventSubscriber/ImagemagickEventSubscriber.php \Drupal\imagemagick\EventSubscriber\ImagemagickEventSubscriber::ensureSourceLocalPath()
Reacts to an image being parsed.
Alters the settings before an image is parsed by the ImageMagick toolkit.
ImageMagick does not support stream wrappers so this method allows 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\Event\ImagemagickExecutionEvent $event: Imagemagick execution event.
See also
\Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::parseFile()
\Drupal\imagemagick\ImagemagickExecArguments::getSource()
\Drupal\imagemagick\ImagemagickExecArguments::setSourceLocalPath()
\Drupal\imagemagick\ImagemagickExecArguments::getSourceLocalPath()
File
- src/
EventSubscriber/ ImagemagickEventSubscriber.php, line 215
Class
- ImagemagickEventSubscriber
- Imagemagick's module Event Subscriber.
Namespace
Drupal\imagemagick\EventSubscriberCode
public function ensureSourceLocalPath(ImagemagickExecutionEvent $event) {
$arguments = $event
->getExecArguments();
$this
->doEnsureSourceLocalPath($arguments);
}