We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee04b4f commit 2c1dfb4Copy full SHA for 2c1dfb4
app/utils.py
@@ -111,7 +111,7 @@ def resize_avatar(old_file):
111
# generate thumbnail if the avatar is too large
112
new_filename = rand_str() + '.png'
113
try:
114
- img.thumbnail((thumbnail_width, thumbnail_height), Image.ANTIALIAS)
+ img.thumbnail((thumbnail_width, thumbnail_height), Image.LANCZOS)
115
img.save(os.path.join(upload_base, new_filename), "PNG")
116
except IOError:
117
print("Failed to create thumbnail from '" + old_file + "' to '" + new_filename + "'")
0 commit comments