Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def resize_image(image, max_size=(800, 800)):
|
|
27 |
"""
|
28 |
Resizes the image to the specified maximum size while maintaining aspect ratio.
|
29 |
"""
|
30 |
-
image.thumbnail(max_size, Image.
|
31 |
return image
|
32 |
|
33 |
# Process the uploaded image
|
|
|
27 |
"""
|
28 |
Resizes the image to the specified maximum size while maintaining aspect ratio.
|
29 |
"""
|
30 |
+
image.thumbnail(max_size, Image.Resampling.LANCZOS)
|
31 |
return image
|
32 |
|
33 |
# Process the uploaded image
|