PHP | Imagick transposeImage() Function
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.
Syntax:
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:
Program:
<?php // require_once('path/vendor/autoload.php'); // Create an imagick object $image = new Imagick( // Imagick function to transpose Image $image->transposeImage(); header("Content-Type: image/jpg"); // Display the image echo $image->getImageBlob(); ?> |
Output:

Related Articles:
Reference: http://php.net/manual/en/imagick.transposeimage.php
Recommended Posts:
- PHP | Imagick getImageResolution() Function
- PHP | Imagick setImageResolution() Function
- PHP | Imagick getImageLength() Function
- PHP | Imagick displayImage() Function
- PHP | Imagick setImageDepth() Function
- PHP | Imagick getImageFormat() Function
- PHP | Imagick getImageGeometry() Function
- PHP | Imagick getImageDepth() Function
- PHP | Imagick profileImage() Function
- PHP | Imagick evaluateImage() Function
- PHP | Imagick exportImagePixels() Function
- PHP | Imagick blueShiftImage() Function
- PHP | Imagick current() Function
- PHP | Imagick medianFilterImage() Function
- PHP | Imagick optimizeImageLayers() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



