Archived
1
0

case insensative file extensions

This commit is contained in:
Jeff Becker 2016-11-07 12:52:28 -05:00
parent 774b2a5e50
commit 15bc796952
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -8,7 +8,7 @@ def generate(fname, tname, placeholder):
"""
generate thumbnail
"""
ext = fname.split('.')[-1]
ext = fname.split('.')[-1].lower()
cmd = None
if ext in img_ext:
cmd = [settings.CONVERT_PATH, '-thumbnail', '200', fname, tname]