2. ImageOps flip


2.1. Flip

Use the ImageOps.flip(image) method to return an image that has been flipped vertically (top to bottom).
from PIL import Image, ImageOps

with Image.open("test_images/shapes.png") as im:
    im1 = ImageOps.flip(im)
    im1.save("imageOps/flip.png")
../_images/compare_flip.png