Learn Before
Code

ImageOps Example (Pillow)

The below example opens a jpg image and applies the grayscale operation on it.

# Importing Image and ImageOps module from PIL package from PIL import Image, ImageOps # creating a image1 object im1 = Image.open(r"C:\Users\sadow984\Desktop\download2.Jpg") # applying autocontrast method im2 = ImageOps.grayscale(im1) im2.show()

0

1

Updated 2021-08-24

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science