Last updated 8 months ago
We can check size (resolution) of an image in Python by using .
>>> from PIL import Image >>> image = Image.open("image.png") >>> print(image.size) (1366, 768)
Source: