Skip to content
Related Articles

Related Articles

PHP | Imagick transposeImage() Function

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

The Imagick::transposeImage() function is an inbuilt function in PHP which is used to create a vertical mirror image. This function creates an image by reflecting the pixels around the central x-axis while rotating them 90-degrees.


bool Imagick::transposeImage( void )

Parameters: This function does not accepts any parameter.

Return Value: This function returns True on success.

Original Image:

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

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


Related Articles:


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!