fffiloni commited on
Commit
4de321c
1 Parent(s): 48640c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def remove_background(input_url):
54
  if image.width > max_width:
55
  aspect_ratio = image.height / image.width
56
  new_height = int(max_width * aspect_ratio)
57
- image = image.resize((max_width, new_height), Image.ANTIALIAS)
58
 
59
  # Save the resized image
60
  image.save(image_path)
 
54
  if image.width > max_width:
55
  aspect_ratio = image.height / image.width
56
  new_height = int(max_width * aspect_ratio)
57
+ image = image.resize((max_width, new_height), Image.LANCZOS)
58
 
59
  # Save the resized image
60
  image.save(image_path)