Spaces:
Running
Running
ciover2024
commited on
Commit
•
95e895d
1
Parent(s):
eb4960f
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def resize_image(input_image, mask_image):
|
|
94 |
bottom_crop = old_height - int((old_height - new_height) / 2)
|
95 |
cropped_image = orig_image.crop((left_crop,top_crop,right_crop,bottom_crop))
|
96 |
return_image = cropped_image.resize(cropped_image.size, Image.Resampling.LANCZOS)
|
97 |
-
|
98 |
return return_image
|
99 |
|
100 |
# Function to resize image (simpler interpolation method for speed)
|
|
|
94 |
bottom_crop = old_height - int((old_height - new_height) / 2)
|
95 |
cropped_image = orig_image.crop((left_crop,top_crop,right_crop,bottom_crop))
|
96 |
return_image = cropped_image.resize(cropped_image.size, Image.Resampling.LANCZOS)
|
|
|
97 |
return return_image
|
98 |
|
99 |
# Function to resize image (simpler interpolation method for speed)
|