fffiloni commited on
Commit
1f4a04f
1 Parent(s): da77c23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.thumbnail((new_width, new_height))
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)