From bac4a4fd86ae6b6a739714cdaf94d353d1b15691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Thu, 4 Apr 2013 14:09:21 +0200 Subject: [PATCH] support more input image formats --- kcc/comic2ebook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 1770a2c..9708ce2 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -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