mirror of https://gitlab.com/litecord/litecord.git
parent
27c6402233
commit
9c6e60643e
|
|
@ -235,7 +235,7 @@ class IconManager:
|
||||||
log.info('resizing from {} to {}',
|
log.info('resizing from {} to {}',
|
||||||
image.size, want)
|
image.size, want)
|
||||||
|
|
||||||
resized = image.resize(want)
|
resized = image.resize(want, resample=Image.LANCZOS)
|
||||||
|
|
||||||
data_fd = BytesIO()
|
data_fd = BytesIO()
|
||||||
resized.save(data_fd, format=extension)
|
resized.save(data_fd, format=extension)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue