Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

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).

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course

Syntax: PIL.ImageOps.flip(image)

image – The image to flip. The image will be flip vertically.

Returns: An image.

Image Used:

# Importing Image and ImageOps module from PIL package 
from PIL import Image, ImageOps 
# creating a image1 object 
im1 ="C:\Users\System-Pc\Desktop\a.JPG"
# applying flip method 
im2 = ImageOps.flip(im1)


My Personal Notes arrow_drop_up
Recommended Articles
Page :