Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 364 Bytes

File metadata and controls

14 lines (10 loc) · 364 Bytes

Check Image Size

We can check size (resolution) of an image in Python by using PIL.

Example

>>> from PIL import Image
>>> image = Image.open("image.png")
>>> print(image.size)
(1366, 768)

Source: Kite