3. ImageOps mirror
3.1. Mirror
Use the
ImageOps.mirror(image)
method to return an image that has been flipped horizontally (left to right).from PIL import Image, ImageOps
with Image.open("test_images/shapes.png") as im:
im1 = ImageOps.mirror(im)
im1.save("imageOps/mirror.png")