mirror of
https://github.com/sjlongland/tornado-gallery.git
synced 2025-09-13 08:42:23 +10:00
resizer: Convert to RGB colourspace when saving.
This commit is contained in:
parent
1b675c7ff4
commit
f43b020d94
@ -200,6 +200,9 @@ class ResizerPool(object):
|
||||
# Resize!
|
||||
img = img.resize((width, height), Image.LANCZOS)
|
||||
|
||||
# Convert to RGB colourspace
|
||||
img = img.convert('RGB')
|
||||
|
||||
# Write out the new file.
|
||||
img.save(open(cache_path,'wb'), img_format.pil_fmt)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user