Ahmadkhan12 commited on
Commit
e36cb90
·
verified ·
1 Parent(s): e88e6c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def resize_image(image, max_size=(800, 800)):
27
  """
28
  Resizes the image to the specified maximum size while maintaining aspect ratio.
29
  """
30
- image.thumbnail(max_size, Image.ANTIALIAS)
31
  return image
32
 
33
  # Process the uploaded image
 
27
  """
28
  Resizes the image to the specified maximum size while maintaining aspect ratio.
29
  """
30
+ image.thumbnail(max_size, Image.Resampling.LANCZOS)
31
  return image
32
 
33
  # Process the uploaded image