summaryrefslogtreecommitdiff
path: root/fbin
diff options
context:
space:
mode:
Diffstat (limited to 'fbin')
-rwxr-xr-xfbin/fbin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin/fbin.py b/fbin/fbin.py
index 7a97194..ffc6a5b 100755
--- a/fbin/fbin.py
+++ b/fbin/fbin.py
@@ -370,7 +370,7 @@ def thumb(hash):
# We can't generate a thumbnail for this file, just say it doesn't exist.
abort(404)
# Check for valid JPEG modes.
- if im.mode not in ('1', 'L', 'RGB', 'RGBA', 'RGBX', 'CMYK', 'YCbCr'):
+ if im.mode not in ('1', 'L', 'RGB', 'RGBX', 'CMYK', 'YCbCr'):
im = im.convert('RGB')
im.thumbnail(current_app.config.get('THUMB_SIZE', (128, 128)), Image.ANTIALIAS)
im.save(thumbfile)