replace usage of deprecated pillow antialias symbol (#79306) #1
|
@ -40,7 +40,7 @@ def create_thumbnail(file_path):
|
|||
image = image.convert('RGB')
|
||||
|
||||
# scale and crop to thumbnail
|
||||
imagefit = ImageOps.fit(image, THUMBNAIL_SIZE, Image.ANTIALIAS)
|
||||
imagefit = ImageOps.fit(image, THUMBNAIL_SIZE, Image.Resampling.LANCZOS)
|
||||
thumbnail_io = BytesIO()
|
||||
imagefit.save(thumbnail_io, format=file_format)
|
||||
|
||||
|
|
Loading…
Reference in New Issue