diff options
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | kcc/comic2ebook.py | 9 | ||||
-rw-r--r-- | kcc/comic2panel.py | 6 |
3 files changed, 4 insertions, 12 deletions
diff --git a/README.md b/README.md index 25499c0..1071a79 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,6 @@ Options: Replace screen height provided by device profile OTHER: - -v, --verbose Verbose output -h, --help Show this help message and exit ``` diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 6237e19..bd4c8f4 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -371,10 +371,6 @@ def fileImgProcess(work): dirpath = work[1] opt = work[2] output = [] - if opt.verbose: - print("Optimizing " + afile + " for " + opt.profile) - else: - print(".", end=' ') img = image.ComicPage(os.path.join(dirpath, afile), opt.profileData) if opt.quality == 2: wipe = False @@ -385,8 +381,6 @@ def fileImgProcess(work): else: splitter = img.splitPage(dirpath, opt.righttoleft, opt.rotate) if splitter is not None: - if opt.verbose: - print("Splitted " + afile) img0 = image.ComicPage(splitter[0], opt.profileData) applyImgOptimization(img0, opt) output.append(img0.saveToDir(dirpath, opt.forcepng, opt.forcecolor)) @@ -933,8 +927,6 @@ def main(argv=None, qtGUI=None): help="Replace screen width provided by device profile") customProfileOptions.add_option("--customheight", type="int", dest="customheight", default=0, help="Replace screen height provided by device profile") - otherOptions.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, - help="Verbose output") otherOptions.add_option("-h", "--help", action="help", help="Show this help message and exit") parser.add_option_group(mainOptions) @@ -953,6 +945,7 @@ def main(argv=None, qtGUI=None): parser.print_help() return path = getWorkFolder(args[0]) + print("\nChecking images...") detectCorruption(path + "/OEBPS/Images/", args[0]) checkComicInfo(path + "/OEBPS/Images/", args[0]) if options.webtoon: diff --git a/kcc/comic2panel.py b/kcc/comic2panel.py index 8612ca3..0169019 100644 --- a/kcc/comic2panel.py +++ b/kcc/comic2panel.py @@ -123,7 +123,6 @@ def splitImage(work): # Harcoded opttions threshold = 1.0 delta = 15 - print(".", end=' ') fileExpanded = os.path.splitext(name) filePath = os.path.join(path, name) image = Image.open(filePath) @@ -236,15 +235,15 @@ def main(argv=None, qtGUI=None): if options.height > 0: options.sourceDir = args[0] options.targetDir = args[0] + "-Splitted" - print("\nSplitting images...") if os.path.isdir(options.sourceDir): rmtree(options.targetDir, True) copytree(options.sourceDir, options.targetDir) work = [] - pagenumber = 0 + pagenumber = 1 splitWorkerOutput = [] splitWorkerPool = Pool() if options.merge: + print("\nMerging images...") directoryNumer = 1 mergeWork = [] mergeWorkerOutput = [] @@ -267,6 +266,7 @@ def main(argv=None, qtGUI=None): if len(mergeWorkerOutput) > 0: rmtree(options.targetDir, True) raise RuntimeError("One of workers crashed. Cause: " + mergeWorkerOutput[0]) + print("\nSplitting images...") for root, dirs, files in os.walk(options.targetDir, False): for name in files: if getImageFileName(name) is not None: |