You are here

protected function Mirror::execute in Image Effects 8.2

Same name in this branch
  1. 8.2 src/Plugin/ImageToolkit/Operation/gd/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Mirror::execute()
  2. 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
  1. 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Mirror.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Mirror::execute()
  2. 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\imagemagick

Code

protected function execute(array $arguments) {
  if ($arguments['x_axis'] === TRUE) {
    $this
      ->addArgument("-flop");
  }
  if ($arguments['y_axis'] === TRUE) {
    $this
      ->addArgument("-flip");
  }
  return TRUE;
}