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:
@@ -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