RafidMehda commited on
Commit
55fe3f1
·
verified ·
1 Parent(s): 4d8e57a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def resize_image(img, max_size=(3000, 3000)):
11
  :param max_size: Maximum dimensions (width, height)
12
  :return: Resized PIL Image object
13
  """
14
- img.thumbnail(max_size, Image.ANTIALIAS)
15
  return img
16
 
17
  # Logistic map function
 
11
  :param max_size: Maximum dimensions (width, height)
12
  :return: Resized PIL Image object
13
  """
14
+ img.thumbnail(max_size, Image.Resampling.LANCZOS) # Use LANCZOS for high-quality downscaling
15
  return img
16
 
17
  # Logistic map function