public function ImagemagickEventSubscriber::preIdentifyExecute in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/EventSubscriber/ImagemagickEventSubscriber.php \Drupal\imagemagick\EventSubscriber\ImagemagickEventSubscriber::preIdentifyExecute()
Fires before the 'identify' command is executed.
It allows to change file paths for source and destination image files, and/or to alter the command line arguments that are passed to the binaries. The toolkit provides methods to prepend, add, find, get and reset arguments that have already been set by image effects.
In addition to arguments that are passed to the binaries command line for execution, it is possible to push arguments to be used only by the toolkit or the event subscribers. You can add/get/find such arguments by specifying ImagemagickExecArguments::INTERNAL as the argument $mode in the methods.
Parameters
\Drupal\imagemagick\Event\ImagemagickExecutionEvent $event: Imagemagick execution event.
See also
http://www.imagemagick.org/script/command-line-processing.php#output
\Drupal\imagemagick\ImagemagickExecArguments
\Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::identify()
File
- src/
EventSubscriber/ ImagemagickEventSubscriber.php, line 238
Class
- ImagemagickEventSubscriber
- Imagemagick's module Event Subscriber.
Namespace
Drupal\imagemagick\EventSubscriberCode
public function preIdentifyExecute(ImagemagickExecutionEvent $event) {
$arguments = $event
->getExecArguments();
$this
->prependArguments($arguments);
}