phyloforfun commited on
Commit
b517827
1 Parent(s): ff94bd2

file upload gallery

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -612,7 +612,7 @@ def display_image_gallery():
612
  # Open the image
613
  img = Image.open(image_path)
614
  # Downsample the image to 120px on the long side
615
- img.thumbnail((120, 120), Image.ANTIALIAS)
616
 
617
  # Convert the image to base64 for HTML embedding
618
  buffered = io.BytesIO()
 
612
  # Open the image
613
  img = Image.open(image_path)
614
  # Downsample the image to 120px on the long side
615
+ img.thumbnail((120, 120), Image.Resampling.LANCZOS)
616
 
617
  # Convert the image to base64 for HTML embedding
618
  buffered = io.BytesIO()