diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 34c8b0a..0633896 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -95,8 +95,6 @@ def buildHTML(path, imgfile, imgfilepath): additionalStyle = 'background-color:#FFFFFF;' htmlpath = '' postfix = '' - size = '' - imgfilepv = '' backref = 1 head = path while True: @@ -122,16 +120,8 @@ def buildHTML(path, imgfile, imgfilepath): "
\n"]) if options.iskindle and options.panelview: - if options.hqmode: - imgfilepv = list(os.path.splitext(imgfile)) - imgfilepv[0] += "-hq" - imgfilepv = "".join(imgfilepv) - if os.path.isfile(os.path.join(head, "Images", postfix, imgfilepv)): - size = Image.open(os.path.join(head, "Images", postfix, imgfilepv)).size - if not options.hqmode or not size: - imgfilepv = imgfile - sizeTmp = Image.open(os.path.join(head, "Images", postfix, imgfilepv)).size - size = (int(sizeTmp[0] * 1.5), int(sizeTmp[1] * 1.5)) + sizeTmp = Image.open(os.path.join(head, "Images", postfix, imgfile)).size + size = (int(sizeTmp[0] * 1.5), int(sizeTmp[1] * 1.5)) if size[0] <= deviceres[0]: noHorizontalPV = True else: @@ -193,7 +183,7 @@ def buildHTML(path, imgfile, imgfilepath): for box in boxes: f.writelines(["