tombetthauser commited on
Commit
57ea063
Β·
1 Parent(s): c99cf8d

Fix attempt for PIL.ANTIALIAS issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -683,7 +683,7 @@ def resize_image(image, max_dimension, multiplier=16):
683
 
684
  new_width = round(new_width / multiplier) * multiplier
685
  new_height = round(new_height / multiplier) * multiplier
686
- resized_image = image.resize((new_width, new_height), Image.ANTIALIAS)
687
 
688
  return resized_image
689
 
 
683
 
684
  new_width = round(new_width / multiplier) * multiplier
685
  new_height = round(new_height / multiplier) * multiplier
686
+ resized_image = image.resize((new_width, new_height), PIL.Image.LANCZOS)
687
 
688
  return resized_image
689