You are here

ImagemagickArguments.php in Image Effects 8.2

File

src/Plugin/ImageToolkit/Operation/gd/ImagemagickArguments.php
View source
<?php

namespace Drupal\image_effects\Plugin\ImageToolkit\Operation\gd;

use Drupal\system\Plugin\ImageToolkit\Operation\gd\GDImageToolkitOperationBase;
use Drupal\image_effects\Plugin\ImageToolkit\Operation\ImagemagickArgumentsTrait;

/**
 * Defines GD 'Imagemagick arguments' operation.
 *
 * @ImageToolkitOperation(
 *   id = "image_effects_gd_imagemagick_arguments",
 *   toolkit = "gd",
 *   operation = "imagemagick_arguments",
 *   label = @Translation("ImageMagick arguments"),
 *   description = @Translation("Directly execute ImageMagick command line arguments.")
 * )
 */
class ImagemagickArguments extends GDImageToolkitOperationBase {
  use ImagemagickArgumentsTrait;

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

    // Obviously, we can not do anything here. This operation is a no-op in GD,
    // this is just defined to avoid effects to fail when GD toolkit is in use.
    return TRUE;
  }

}

Classes

Namesort descending Description
ImagemagickArguments Defines GD 'Imagemagick arguments' operation.