mirror of
https://github.com/ciromattia/kcc
synced 2026-09-29 22:22:36 +00:00
Implemented --forcecolor
This commit is contained in:
@@ -88,6 +88,7 @@ Options:
|
|||||||
--nocutpagenumbers Do not try to cut page numbering on images [Default=True]
|
--nocutpagenumbers Do not try to cut page numbering on images [Default=True]
|
||||||
-o OUTPUT, --output=OUTPUT
|
-o OUTPUT, --output=OUTPUT
|
||||||
Output generated file (EPUB or CBZ) to specified directory or file
|
Output generated file (EPUB or CBZ) to specified directory or file
|
||||||
|
--forcecolor Do not convert images to grayscale [Default=False]
|
||||||
--customwidth=WIDTH Replace screen width provided by device profile [Default=0]
|
--customwidth=WIDTH Replace screen width provided by device profile [Default=0]
|
||||||
--customheight=HEIGHT Replace screen height provided by device profile [Default=0]
|
--customheight=HEIGHT Replace screen height provided by device profile [Default=0]
|
||||||
-v, --verbose Verbose output [Default=False]
|
-v, --verbose Verbose output [Default=False]
|
||||||
@@ -210,6 +211,7 @@ The app relies and includes the following scripts/binaries:
|
|||||||
* New QT GUI
|
* New QT GUI
|
||||||
* Merge with AWKCC
|
* Merge with AWKCC
|
||||||
* Added support for custom width/height
|
* Added support for custom width/height
|
||||||
|
* Added option to disable color conversion
|
||||||
|
|
||||||
## COPYRIGHT
|
## COPYRIGHT
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -668,6 +668,8 @@ def main(argv=None, qtGUI=None):
|
|||||||
help="Do not try to cut page numbering on images [Default=True]")
|
help="Do not try to cut page numbering on images [Default=True]")
|
||||||
parser.add_option("-o", "--output", action="store", dest="output", default=None,
|
parser.add_option("-o", "--output", action="store", dest="output", default=None,
|
||||||
help="Output generated file (EPUB or CBZ) to specified directory or file")
|
help="Output generated file (EPUB or CBZ) to specified directory or file")
|
||||||
|
parser.add_option("--forcecolor", action="store_true", dest="forcecolor", default=False,
|
||||||
|
help="Do not convert images to grayscale [Default=False]")
|
||||||
parser.add_option("--customwidth", type="int", dest="customwidth", default=0,
|
parser.add_option("--customwidth", type="int", dest="customwidth", default=0,
|
||||||
help="Replace screen width provided by device profile [Default=0]")
|
help="Replace screen width provided by device profile [Default=0]")
|
||||||
parser.add_option("--customheight", type="int", dest="customheight", default=0,
|
parser.add_option("--customheight", type="int", dest="customheight", default=0,
|
||||||
@@ -752,7 +754,7 @@ def checkOptions():
|
|||||||
options.nopanelviewhq = True
|
options.nopanelviewhq = True
|
||||||
# Disabling grayscale conversion for Kindle Fire family.
|
# Disabling grayscale conversion for Kindle Fire family.
|
||||||
# Forcing JPEG output. For now code can't provide color PNG files.
|
# Forcing JPEG output. For now code can't provide color PNG files.
|
||||||
if options.profile == 'KF' or options.profile == 'KFHD' or options.profile == 'KFHD8':
|
if options.profile == 'KF' or options.profile == 'KFHD' or options.profile == 'KFHD8' or options.forcecolor:
|
||||||
options.forcecolor = True
|
options.forcecolor = True
|
||||||
options.forcepng = False
|
options.forcepng = False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user