Encipher.php in Imagick 8
File
src/Plugin/ImageToolkit/Operation/imagick/Encipher.php
View source
<?php
namespace Drupal\imagick\Plugin\ImageToolkit\Operation\imagick;
use Imagick;
class Encipher extends ImagickOperationBase {
protected function arguments() {
return [
'password' => [
'description' => 'The password to encrypt the image with.',
],
];
}
protected function process(Imagick $resource, array $arguments) {
return $resource
->encipherImage($arguments['password']);
}
}
Classes
Name |
Description |
Encipher |
Defines imagick encipher operation. |