fix JPEG image handling

This commit is contained in:
gabixdev 2019-03-01 19:42:10 +01:00
parent 9a42d20259
commit 53bb87c7d1
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 3 additions and 0 deletions

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