1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-04 05:33:30 +00:00

Merge pull request #44 from devernay/master

Support more input image formats: GIF, TIFF, ...
This commit is contained in:
Ciro Mattia Gonano
2013-04-11 02:50:37 -07:00
+4
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