You are here

class Strip in Image Effects 8.2

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

Defines ImageMagick Strip operation.

Plugin annotation


@ImageToolkitOperation(
  id = "image_effects_imagemagick_strip",
  toolkit = "imagemagick",
  operation = "strip",
  label = @Translation("Strip"),
  description = @Translation("Strips metadata from an image.")
)

Hierarchy

  • class \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Strip extends \Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickImageToolkitOperationBase

Expanded class hierarchy of Strip

File

src/Plugin/ImageToolkit/Operation/imagemagick/Strip.php, line 18

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick
View source
class Strip extends ImagemagickImageToolkitOperationBase {

  /**
   * {@inheritdoc}
   */
  protected function arguments() {

    // This operation does not use any parameters.
    return [];
  }

  /**
   * {@inheritdoc}
   */
  protected function execute(array $arguments) {
    $this
      ->addArgument('-strip');
    return TRUE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Strip::arguments protected function
Strip::execute protected function