Imagick::transverseImage

(PECL imagick 2.0.0)
Creates a horizontal mirror image
bool Imagick::transverseImage ( void )

Creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them 270-degrees. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

Returns:

Returns TRUE on success.

Examples:
Imagick::transverseImage()
<?php
function transverseImage($imagePath) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->transverseImage();
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}

?>

See also:

Imagick::transposeImage() -

doc_php
2016-02-24 16:01:29
Comments
Leave a Comment

Please login to continue.