Answers for "reducing resolution of image python code"

0

get resolution of image python

img = Image.open("test.png")
img = img.size
# img.size is a tuple
Posted by: Guest on December-19-2020
0

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)
Posted by: Guest on June-29-2021

Code answers related to "reducing resolution of image python code"

Python Answers by Framework

Browse Popular Code Answers by Language