You are here

function image_imagick_encipher in Imagick 7

Encipher the image

Parameters

$image: An image object. The $image->resource value will be modified by this call.

$password: The password to encrypt the image with.

Return value

TRUE or FALSE, based on success.

File

effects/imagick.encipher.inc, line 13

Code

function image_imagick_encipher(stdClass $image, $password) {
  $image->resource
    ->encipherImage($password);
  return $image;
}