Python PIL | ImageOps.flip() method
Last Updated :
11 Jul, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageOps module contains a number of ‘ready-made’ image processing operations. This module is somewhat experimental, and most operators only work on L and RGB images.
ImageOps.flip()
Flip the image vertically (top to bottom).
Syntax: PIL.ImageOps.flip(image)
Parameters:
image – The image to flip. The image will be flip vertically.
Returns: An image.
Image Used:
from PIL import Image, ImageOps
im1 = Image. open (r "C:\Users\System-Pc\Desktop\a.JPG" )
im2 = ImageOps.flip(im1)
im2.show()
|
Output:
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...