PHP | Imagick encipherImage() Function Last Updated : 23 Jul, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::encipherImage() function is an inbuilt function in PHP which is used to convert plain pixels image into enciphered pixels. This function simply converts the pixels to enciphered pixels and then the image can be readable only if decipher the image with the same string with which it was enciphered. Syntax: bool Imagick::encipherImage( $passphrase ) Parameters: This function accepts single parameter $passphrase which holds the passphrase value. Return Value: It returns True on success or False on failure. Below program illustrates the Imagick::encipherImage() function in PHP: Program: PHP <?php // Creating new Imagick object $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Creating the passphrase $passphrase = "GeeksforGeeks"; // Calling the function $image->encipherImage($passphrase); // $image is now enciphered with string // "GeeksforGeeks" // $image can only be made readable by // decipherImage() method // with the same passphrase as parameter header("Content-Type: image/jpg"); // Showing the deciphered image which is // same as our sampleimage.jpeg echo $image; ?> Output: Deciphered image if the passphrase is incorrect : Reference: https://php.net/manual/en/imagick.encipherimage.php Comment More infoAdvertise with us Next Article PHP | Imagick encipherImage() Function A AllBoutStudies Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick decipherImage() Function The Imagick::decipherImage() function is an inbuilt function in PHP which is used to decipher an image which has been enciphered before. Syntax: bool Imagick::decipherImage( string $passphrase ) Parameters: This function accepts a single parameter $passphrase which holds the passphrase value or the 1 min read PHP | Imagick enhanceImage() Function The Imagick::enhanceImage() function is an inbuilt function in PHP which is used to improve the quality of a noisy image. This function applies the digital filter to improve quality. Syntax: bool Imagick::enhanceImage( void ) Parameter: This function does not accepts any parameter. Return Value: Thi 1 min read PHP | Imagick colorizeImage() Function The Imagick::colorizeImage() function is an inbuilt function in PHP which is used to blends the fill color with each pixel in the image with a specified opacity. Syntax: bool Imagick::colorizeImage( mixed $colorize, mixed $opacity, bool $legacy = FALSE ) Parameters: This function accepts three param 2 min read PHP | Imagick equalizeImage() Function The Imagick::equalizeImage() function is an inbuilt function in PHP which is used to equalizes the histogram of an image. Syntax: bool Imagick::equalizeImage( void ) Parameter: This function does not accepts any parameter. Return Value: This function returns True on success. Original Image: Below pr 1 min read PHP | Imagick displayImage() Function The Imagick::displayImage() function is an inbuilt function in PHP which is used to displays an image object. Syntax: bool Imagick::displayImage( $servername ) Parameters: This function accepts a single parameter $servername which is used to specify the server name. Return Value: This function retur 1 min read Like