Spaces:
Running
on
Zero
Running
on
Zero
jon-pascal
commited on
Commit
•
78a19b7
1
Parent(s):
f4595b7
Update app.py
Browse filesantialiasing fix
app.py
CHANGED
@@ -72,7 +72,7 @@ def process_uploaded_image(image_path):
|
|
72 |
else:
|
73 |
new_height = 1024
|
74 |
new_width = int((1024 / height) * width)
|
75 |
-
image = image.resize((new_width, new_height), Image.
|
76 |
image.save(image_path)
|
77 |
return image_path
|
78 |
|
|
|
72 |
else:
|
73 |
new_height = 1024
|
74 |
new_width = int((1024 / height) * width)
|
75 |
+
image = image.resize((new_width, new_height), Image.Resampling.LANCZOS)
|
76 |
image.save(image_path)
|
77 |
return image_path
|
78 |
|