9951 explained code solutions for 126 technologies


python-pillowHow to flip an image


from PIL import Image, ImageOps

im = Image.open('/var/www/examples/heroine.png')
im = ImageOps.flip(im)

im.show()ctrl + c
PIL

import Pillow package modules

Image.open

open given image with Pillow

ImageOps.flip(

flips given image vertically

.show()

displays resulting image