protected function Mirror::execute in Image Effects 8.2
Same name in this branch
- 8.2 src/Plugin/ImageToolkit/Operation/gd/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Mirror::execute()
- 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Mirror::execute()
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Mirror::execute()
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Mirror::execute()
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ Mirror.php, line 26
Class
- Mirror
- Defines ImageMagick Mirror operation.
Namespace
Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagickCode
protected function execute(array $arguments) {
if ($arguments['x_axis'] === TRUE) {
$this
->addArgument("-flop");
}
if ($arguments['y_axis'] === TRUE) {
$this
->addArgument("-flip");
}
return TRUE;
}