diff --git a/ckeditor/image/pillow_backend.py b/ckeditor/image/pillow_backend.py index a888c5c..26bcd62 100644 --- a/ckeditor/image/pillow_backend.py +++ b/ckeditor/image/pillow_backend.py @@ -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)