Thursday, February 5, 2026
HomeLanguagesPython PIL | ImageOps.flip() method

Python PIL | ImageOps.flip() method

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:




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


Output:

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32487 POSTS0 COMMENTS
Milvus
126 POSTS0 COMMENTS
Nango Kala
6861 POSTS0 COMMENTS
Nicole Veronica
11983 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12071 POSTS0 COMMENTS
Shaida Kate Naidoo
6994 POSTS0 COMMENTS
Ted Musemwa
7233 POSTS0 COMMENTS
Thapelo Manthata
6944 POSTS0 COMMENTS
Umr Jansen
6926 POSTS0 COMMENTS