1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-30 18:11:49 +00:00

support more input image formats

This commit is contained in:
Frédéric Devernay
2013-04-04 14:09:21 +02:00
parent d923299230
commit bac4a4fd86

View File

@@ -276,6 +276,10 @@ def getImageFileName(imgfile):
if filename[0].startswith('.') or\
(filename[1].lower() != '.png' and
filename[1].lower() != '.jpg' and
filename[1].lower() != '.gif' and
filename[1].lower() != '.tif' and
filename[1].lower() != '.tiff' and
filename[1].lower() != '.bmp' and
filename[1].lower() != '.jpeg'):
return None
return filename