fffiloni commited on
Commit
fd486d9
1 Parent(s): 71ba5f1

use LANCZOS filter

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.ANTIALIAS)
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'