You are here

class ImagemagickArguments 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
  2. 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments
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
  2. 8 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickArguments.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments

Defines ImageMagick 'Imagemagick arguments' operation.

Plugin annotation


@ImageToolkitOperation(
  id = "image_effects_imagemagick_imagemagick_arguments",
  toolkit = "imagemagick",
  operation = "imagemagick_arguments",
  label = @Translation("ImageMagick arguments"),
  description = @Translation("Directly execute ImageMagick command line arguments.")
)

Hierarchy

  • class \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickArguments extends \Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickImageToolkitOperationBase uses ImagemagickArgumentsTrait

Expanded class hierarchy of ImagemagickArguments

File

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

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick
View source
class ImagemagickArguments extends ImagemagickImageToolkitOperationBase {
  use ImagemagickArgumentsTrait;

  /**
   * {@inheritdoc}
   */
  protected function execute(array $arguments) {

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

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

}

Members