Learn Before
Concept

Identifying Images (Pillow)

Image objects have several properties to help identify them. The format property identifies the source of an image, which can be none if the image didn't come from a file. The size property is a tuple containing the width and height of the image in pixels. The mode property identifies the type of color mode, such as RGB or CMYK.

image.format image.size image.mode

0

1

Updated 2021-07-11

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science