For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Last updated