mirror of
https://github.com/ciromattia/kcc
synced 2026-10-21 08:52:32 +00:00
add no quantize option (#1269)
This commit is contained in:
@@ -707,7 +707,8 @@ def imgFileProcessing(work):
|
||||
pass
|
||||
elif opt.forcepng:
|
||||
img.convertToGrayscale()
|
||||
img.quantizeImage()
|
||||
if not opt.noquantize:
|
||||
img.quantizeImage()
|
||||
if opt.format == 'PDF':
|
||||
img.convertToGrayscale()
|
||||
elif opt.profile == 'KDX' and opt.format == 'CBZ':
|
||||
@@ -1403,6 +1404,8 @@ def makeParser():
|
||||
help="Erase rainbow effect on color eink screen by attenuating interfering frequencies")
|
||||
processing_options.add_argument("--forcepng", action="store_true", dest="forcepng", default=False,
|
||||
help="Create PNG files instead JPEG")
|
||||
processing_options.add_argument("--noquantize", action="store_true", dest="noquantize", default=False,
|
||||
help="Don't quantize to 16 color PNG")
|
||||
processing_options.add_argument("--mozjpeg", action="store_true", dest="mozjpeg", default=False,
|
||||
help="Create JPEG files using mozJpeg")
|
||||
processing_options.add_argument("--jpeg-quality", type=int, dest="jpegquality",
|
||||
|
||||
Reference in New Issue
Block a user