case insensative file extensions
This commit is contained in:
parent
774b2a5e50
commit
15bc796952
@ -8,7 +8,7 @@ def generate(fname, tname, placeholder):
|
|||||||
"""
|
"""
|
||||||
generate thumbnail
|
generate thumbnail
|
||||||
"""
|
"""
|
||||||
ext = fname.split('.')[-1]
|
ext = fname.split('.')[-1].lower()
|
||||||
cmd = None
|
cmd = None
|
||||||
if ext in img_ext:
|
if ext in img_ext:
|
||||||
cmd = [settings.CONVERT_PATH, '-thumbnail', '200', fname, tname]
|
cmd = [settings.CONVERT_PATH, '-thumbnail', '200', fname, tname]
|
||||||
|
Reference in New Issue
Block a user