jon-pascal commited on
Commit
78a19b7
1 Parent(s): f4595b7

Update app.py

Browse files

antialiasing fix

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def process_uploaded_image(image_path):
72
  else:
73
  new_height = 1024
74
  new_width = int((1024 / height) * width)
75
- image = image.resize((new_width, new_height), Image.ANTIALIAS)
76
  image.save(image_path)
77
  return image_path
78
 
 
72
  else:
73
  new_height = 1024
74
  new_width = int((1024 / height) * width)
75
+ image = image.resize((new_width, new_height), Image.Resampling.LANCZOS)
76
  image.save(image_path)
77
  return image_path
78