mirror of https://gitlab.com/litecord/litecord.git
fix JPEG image handling
This commit is contained in:
parent
9a42d20259
commit
53bb87c7d1
|
|
@ -340,6 +340,9 @@ class IconManager:
|
|||
elif 'size' in kwargs:
|
||||
image = Image.open(data_fd)
|
||||
|
||||
if mime == 'image/jpeg':
|
||||
image = image.convert("RGB")
|
||||
|
||||
want = kwargs['size']
|
||||
|
||||
log.info('resizing from {} to {}',
|
||||
|
|
|
|||
Loading…
Reference in New Issue