replace usage of deprecated pillow antialias symbol (#79306) #1

Merged
fpeters merged 1 commits from wip/79306-pillow into main 2023-07-03 12:13:28 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -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)