Skip to content

Commit

Permalink
fix: PIL does not support ANTIALIAS anymore, it's been deprecated for…
Browse files Browse the repository at this point in the history
… a long time. Replaced by Image.LANCZOS
  • Loading branch information
xnopasaranx committed Aug 9, 2023
1 parent 84c7cd6 commit 74231fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def thumbnailer(fileSkel, existingFiles, params):
else: # No default fallback - ignore
continue
mimeType = sizeDict.get("mimeType", "image/webp")
img = img.resize((width, height), Image.ANTIALIAS)
img = img.resize((width, height), Image.LANCZOS)
img.save(outData, fileExtension)
outSize = outData.tell()
outData.seek(0)
Expand Down

0 comments on commit 74231fc

Please sign in to comment.