Skip to content

Commit

Permalink
Image.ANTIALIAS has been replaced with Image.LANCZOS on pillow v10
Browse files Browse the repository at this point in the history
Signed-off-by: Kipchirchir Sigei <[email protected]>
  • Loading branch information
KipSigei committed Aug 9, 2023
1 parent 3226612 commit 3ddd695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/libs/utils/image_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _save_thumbnails(image, path, size, suffix, extension):

try:
# Ensure conversion to float in operations
image.thumbnail(get_dimensions(image.size, float(size)), Image.ANTIALIAS)
image.thumbnail(get_dimensions(image.size, float(size)), Image.LANCZOS)
except ZeroDivisionError:
pass

Expand Down

0 comments on commit 3ddd695

Please sign in to comment.