Imagick::transposeImage
PHP function
Edit on GitHub ✎
(PECL imagick 2, PECL imagick 3)
Creates a vertical mirror image
Description
Imagick::transposeImage(): bool
Creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them 90-degrees. 0x629
Parameters Parameters
Return Values
Success
Examples
php
<?php
function transposeImage($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->transposeImage();
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>