Spaces:
Running
on
L40S
Running
on
L40S
use LANCZOS filter
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def preprocess_image(image_path):
|
|
35 |
new_width = int((new_height / height) * width)
|
36 |
|
37 |
# Resize the image
|
38 |
-
img_resized = img.resize((new_width, new_height), Image.
|
39 |
print(f"Resized image to {new_width}x{new_height}.")
|
40 |
|
41 |
# Save the resized image as 'resized_image.jpg'
|
|
|
35 |
new_width = int((new_height / height) * width)
|
36 |
|
37 |
# Resize the image
|
38 |
+
img_resized = img.resize((new_width, new_height), Image.LANCZOS)
|
39 |
print(f"Resized image to {new_width}x{new_height}.")
|
40 |
|
41 |
# Save the resized image as 'resized_image.jpg'
|