Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- # Open an image
- image = Image.open("your_image.jpg")
- # Get the size (width and height) of the image
- width, height = image.size
- print(f"Width: {width}, Height: {height}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement