Merge pull request #44 from devernay/master
Support more input image formats: GIF, TIFF, ...
This commit is contained in:
commit
f1b8aff8d4
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user