Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ class AnimateController:
|
|
| 176 |
image = Image.open(input_path)
|
| 177 |
|
| 178 |
# Resize the image while maintaining the aspect ratio
|
| 179 |
-
image.
|
| 180 |
|
| 181 |
# Save the resized image to the specified output path
|
| 182 |
image.save(output_path)
|
|
|
|
| 176 |
image = Image.open(input_path)
|
| 177 |
|
| 178 |
# Resize the image while maintaining the aspect ratio
|
| 179 |
+
image.resize((new_width, new_height), Image.LANCZOS)
|
| 180 |
|
| 181 |
# Save the resized image to the specified output path
|
| 182 |
image.save(output_path)
|