mrbeliever commited on
Commit
9358231
·
verified ·
1 Parent(s): c3cdb5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def resize_image(image, max_width=500):
21
  """
22
  width_percent = max_width / float(image.size[0])
23
  new_height = int((float(image.size[1]) * float(width_percent)))
24
- resized_image = image.resize((max_width, new_height), Image.ANTIALIAS)
25
  return resized_image
26
 
27
  # Function to convert image to Base64
 
21
  """
22
  width_percent = max_width / float(image.size[0])
23
  new_height = int((float(image.size[1]) * float(width_percent)))
24
+ resized_image = image.resize((max_width, new_height), Image.Resampling.LANCZOS)
25
  return resized_image
26
 
27
  # Function to convert image to Base64