2948 explained code solutions for 75 technologies


python-pillowHow to mirror image


from PIL import Image, ImageOps

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

im.show()ctrl + c
PIL

import Pillow package modules

Image.open

open given image with Pillow

ImageOps.mirror(

mirrors given image horizontally

.show()

displays resulting image