Learn Before
Concept
Image Class (Pillow)
The most important class in Pillow is the Image class. Instances of the Image class can be created by loading images from files, processing preexisting images, or by making images from scratch. The most common approach is to load an image from a file using the open() function:
Image.open(filepath)
The open() function will return an Image object if successful. Otherwise, an OSError exception is raised if the file can't be found.
0
1
Updated 2021-08-21
Tags
Python Programming Language
Data Science