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