Use pil lanczos.

This commit is contained in:
voussoir 2022-08-03 18:48:21 -07:00
parent 16adb03dca
commit e30555fc4e
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -132,7 +132,7 @@ class Feed(ObjectBase):
frame_height=32, frame_height=32,
only_shrink=True, only_shrink=True,
) )
icon = icon.resize((new_w, new_h), PIL.Image.ANTIALIAS) icon = icon.resize((new_w, new_h), PIL.Image.LANCZOS)
bio = io.BytesIO() bio = io.BytesIO()
icon.save(bio, format='png') icon.save(bio, format='png')
bio.seek(0) bio.seek(0)