mirror of https://gitlab.com/litecord/litecord.git
Merge branch 'hotfix-jpeg' into 'master'
jpeg handling fix See merge request litecord/litecord!21
This commit is contained in:
commit
6452d67824
|
|
@ -108,3 +108,4 @@ images/*
|
||||||
attachments/*
|
attachments/*
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.vscode
|
||||||
|
|
|
||||||
|
|
@ -340,6 +340,9 @@ class IconManager:
|
||||||
elif 'size' in kwargs:
|
elif 'size' in kwargs:
|
||||||
image = Image.open(data_fd)
|
image = Image.open(data_fd)
|
||||||
|
|
||||||
|
if mime == 'image/jpeg':
|
||||||
|
image = image.convert("RGB")
|
||||||
|
|
||||||
want = kwargs['size']
|
want = kwargs['size']
|
||||||
|
|
||||||
log.info('resizing from {} to {}',
|
log.info('resizing from {} to {}',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue