mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 16:37:06 +00:00
support more input image formats
This commit is contained in:
@@ -276,6 +276,10 @@ def getImageFileName(imgfile):
|
|||||||
if filename[0].startswith('.') or\
|
if filename[0].startswith('.') or\
|
||||||
(filename[1].lower() != '.png' and
|
(filename[1].lower() != '.png' and
|
||||||
filename[1].lower() != '.jpg' 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'):
|
filename[1].lower() != '.jpeg'):
|
||||||
return None
|
return None
|
||||||
return filename
|
return filename
|
||||||
|
|||||||
Reference in New Issue
Block a user