Skip to the content.

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