How to find the PIL image size

In this article, you’ll see how to find the PIL image size in Python. You just have to use the following code. I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn Computer Vision.

# Import the PIL library
from PIL import Image

# Read the Image
image ="C:\\AiHints\\cats.jpg")

# Print size of the image
print(image.size) # width and height

# Show the Image


(1279, 711)

Leave a Comment

Your email address will not be published.