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