class Strip in Image Effects 8
Same name in this branch
- 8 src/Plugin/ImageToolkit/Operation/gd/Strip.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Strip
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/Strip.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Strip
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Strip.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Strip
- 8.2 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\imagemagickView source
class Strip extends ImagemagickImageToolkitOperationBase {
/**
* {@inheritdoc}
*/
protected function arguments() {
// This operation does not use any parameters.
return [];
}
/**
* {@inheritdoc}
*/
protected function execute(array $arguments) {
$this
->getToolkit()
->addArgument('-strip');
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Strip:: |
protected | function | ||
Strip:: |
protected | function |