Use pil lanczos.
This commit is contained in:
parent
16adb03dca
commit
e30555fc4e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue