Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def resize_image(image, max_width=500):
|
|
21 |
"""
|
22 |
width_percent = max_width / float(image.size[0])
|
23 |
new_height = int((float(image.size[1]) * float(width_percent)))
|
24 |
-
resized_image = image.resize((max_width, new_height), Image.
|
25 |
return resized_image
|
26 |
|
27 |
# Function to convert image to Base64
|
|
|
21 |
"""
|
22 |
width_percent = max_width / float(image.size[0])
|
23 |
new_height = int((float(image.size[1]) * float(width_percent)))
|
24 |
+
resized_image = image.resize((max_width, new_height), Image.Resampling.LANCZOS)
|
25 |
return resized_image
|
26 |
|
27 |
# Function to convert image to Base64
|