Skip to content
Related Articles

Related Articles

PHP | Imagick transverseImage() Function

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 26 Aug, 2019
Improve Article
Save Article

The Imagick::transverseImage() function is an inbuilt function in PHP which is used to create a horizontal mirror image by reflecting the pixels around the y-axis. This function rotates the image by 270-degrees.


bool Imagick::transverseImage( void )

Parameters: This function does not accept any parameter.

Return Value: This function returns True on success.

Original Image:

Below program illustrate Imagick::transverseImage() function in PHP:


// require_once('path/vendor/autoload.php');
// Create an imagick object
$image = new Imagick(
// Imagick function to transverse Image
header("Content-Type: image/jpg");
// Display the image
echo $image->getImageBlob();


Related Articles:


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!