get resolution of image python
img = Image.open("test.png")
img = img.size
# img.size is a tuple
get resolution of image python
img = Image.open("test.png")
img = img.size
# img.size is a tuple
image processing and resizing with python
image = Image.open('demo_image.jpg')
box = (200, 300, 700, 600)
cropped_image = image.crop(box)
cropped_image.save('cropped_image.jpg')
# Print size of cropped image
print(cropped_image.size) # Output: (500, 300)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us