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