Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by auth0.com #
 
PREVIOUS NEXT
Tagged: #image #processing #resizing #python
ADD COMMENT
Topic
Name
1+6 =