Creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them 270-degrees. Available since 6.2.9
Image
Creates a horizontal mirror image by reflecting the pixels around the central y-axis while rotating them 270-degrees. Available since 6.2.9
function transverseImage($imagePath)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->transverseImage();
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}