> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/python/check-image-size.md).

# Check Image Size

We can check size (resolution) of an image in Python by using [PIL](https://pillow.readthedocs.io/en/stable/).

## Example

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

***Source:*** [***Kite***](https://www.kite.com/python/answers/how-to-get-the-size-of-an-image-with-pil-in-python)
