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
$image = new Imagick(
$image ->transposeImage();
header( "Content-Type: image/jpg" );
echo $image ->getImageBlob();
?>
|
Output:
Related Articles:
Reference: http://php.net/manual/en/imagick.transposeimage.php
Last Updated :
26 Aug, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...