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 1/3] 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 From 6369c7ea44ebfe2cfb56cd63570f57ca4437ce5e Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Thu, 11 Apr 2013 12:54:16 +0300 Subject: [PATCH 2/3] Update after merging of #44 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b54a166..8f72cd7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can find the latest released binary at the following links: ## INPUT FORMATS `kcc` can understand and convert, at the moment, the following file types: -- PNG, JPG +- PNG, JPG, GIF, TIFF, BMP - Folders - CBZ, ZIP - CBR, RAR *(With `unrar` executable)* @@ -123,7 +123,8 @@ The app relies and includes the following scripts/binaries: Added generic CSS file Optimized archive extraction for zip/rar files (#40) - 2.9: Added support for generating a plain CBZ (skipping all the EPUB/Mobi generation) (#45) - Prevent output file overwriting the source one: if a duplicate name is detected, append _kcc to the name + Prevent output file overwriting the source one: if a duplicate name is detected, append _kcc to the name + Added GIF, TIFF and BMP to supported formats (#42) ## COPYRIGHT From 4f3a66b4eb82efc7008aa5a8fb304e8e23b3df2c Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Thu, 11 Apr 2013 12:59:01 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8f72cd7..196f1b8 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ The app relies and includes the following scripts/binaries: Optimized archive extraction for zip/rar files (#40) - 2.9: Added support for generating a plain CBZ (skipping all the EPUB/Mobi generation) (#45) Prevent output file overwriting the source one: if a duplicate name is detected, append _kcc to the name + Rarfile library updated to 2.6 Added GIF, TIFF and BMP to supported formats (#42)