replace usage of deprecated pillow antialias symbol (#79306)
This commit is contained in:
parent
649d63f1fc
commit
238219c184
|
@ -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