From f44bf5993ea3716abf02488f1c13df49f8279f84 Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Fri, 13 Oct 2017 10:41:45 +0200 Subject: Fixed HQ mode upscaling (close #248) --- kindlecomicconverter/KCC_gui.py | 2 +- kindlecomicconverter/comic2ebook.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kindlecomicconverter') diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index a97ac7b..9191a49 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -620,7 +620,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow): if value == 2: if profile['Label'] in ['KV', 'KO']: self.addMessage('This option is intended for older Kindle models.', 'warning') - self.addMessage('It will not increase quality on a device with 300 ppi screen.', 'warning') + self.addMessage('On this device, quality improvement will be negligible.', 'warning') GUI.upscaleBox.setEnabled(False) GUI.upscaleBox.setChecked(True) else: diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 3cf38f4..459695d 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -104,7 +104,7 @@ def buildHTML(path, imgfile, imgfilepath): htmlfile = os.path.join(htmlpath, filename[0] + '.xhtml') imgsize = Image.open(os.path.join(head, "Images", postfix, imgfile)).size if options.hq: - imgsizeframe = deviceres + imgsizeframe = (int(imgsize[0] // 1.5), int(imgsize[1] // 1.5)) else: imgsizeframe = imgsize f = open(htmlfile, "w", encoding='UTF-8') @@ -118,7 +118,7 @@ def buildHTML(path, imgfile, imgfilepath): "content=\"width=" + str(imgsize[0]) + ", height=" + str(imgsize[1]) + "\"/>\n" "\n", "\n", - "
\n", + "
\n", "\n
\n"]) if options.iskindle and options.panelview: -- cgit 1.4.1