Merge branch 'hotfix-jpeg' into 'master'

jpeg handling fix

See merge request litecord/litecord!21
This commit is contained in:
Luna 2019-03-01 18:53:15 +00:00
commit 6452d67824
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -108,3 +108,4 @@ images/*
attachments/*
.DS_Store
.vscode

View File

@ -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 {}',