mirror of
https://github.com/ciromattia/kcc
synced 2026-10-22 01:12:34 +00:00
Merge from master
This commit is contained in:
@@ -15,7 +15,7 @@ You can find the latest released binary at the following links:
|
|||||||
|
|
||||||
## INPUT FORMATS
|
## INPUT FORMATS
|
||||||
`kcc` can understand and convert, at the moment, the following file types:
|
`kcc` can understand and convert, at the moment, the following file types:
|
||||||
- PNG, JPG
|
- PNG, JPG, GIF, TIFF, BMP
|
||||||
- Folders
|
- Folders
|
||||||
- CBZ, ZIP
|
- CBZ, ZIP
|
||||||
- CBR, RAR *(With `unrar` executable)*
|
- CBR, RAR *(With `unrar` executable)*
|
||||||
@@ -125,6 +125,7 @@ The app relies and includes the following scripts/binaries:
|
|||||||
- 2.9: Added support for generating a plain CBZ (skipping all the EPUB/Mobi generation) (#45)
|
- 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
|
||||||
Rarfile library updated to 2.6
|
Rarfile library updated to 2.6
|
||||||
|
Added GIF, TIFF and BMP to supported formats (#42)
|
||||||
Filenames slugifications (#28, #31, #9, #8)
|
Filenames slugifications (#28, #31, #9, #8)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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