You are here

protected function ImagemagickArguments::execute in Image Effects 8.2

Same name in this branch
  1. 8.2 src/Plugin/ImageToolkit/Operation/gd/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\ImagemagickArguments::execute()
  2. 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments::execute()
Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments::execute()
  2. 8 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments::execute()

File

src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php, line 26

Class

ImagemagickArguments
Defines ImageMagick 'Imagemagick arguments' operation.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick

Code

protected function execute(array $arguments) {

  // Add argument.
  $this
    ->addArgument($arguments['command_line']);

  // Set dimensions.
  $this
    ->getToolkit()
    ->setWidth($arguments['width'])
    ->setHeight($arguments['height']);
  return TRUE;
}