From 48d3bee225957de73ed8afb6b7f23739f064bdfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 5 Dec 2013 19:49:29 +0100 Subject: [PATCH] Upscaling is now default on Kindle Fire HD/HDX models --- README.md | 1 + kcc/KCC_gui.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27b8ee0..d79d491 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ You can find the latest released binary at the following links: * Check our [wiki](https://github.com/ciromattia/kcc/wiki/Other-devices) for a list of tested Non-Kindle E-Readers. * The first image found will be set as the comic's cover. * All files/directories will be added to EPUB in alphabetical order. +* Using high/ultra quality output option with Kindle Fire HD/HDX in most cases is just waste of space. * ComicRack metadata will be parsed only if they are saved in *ComicInfo.xml* file. ### Calibre: diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 05a4b58..44ea5b2 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -290,7 +290,7 @@ class KindleUnpackThread(QtCore.QRunnable): try: # MOBI file produced by KindleGen is hybrid. KF8 + M7 + Source header # KindleSplit is removing redundant data as we need only KF8 part for new Kindle models - if profile in ['K345', 'KHD', 'KF', 'KFHD', 'KFHD8', 'KFHDX8', 'KFA']: + if profile in ['K345', 'KHD', 'KF', 'KFHD', 'KFHD8', 'KFHDX', 'KFHDX8', 'KFA']: newKindle = True else: newKindle = False @@ -354,6 +354,9 @@ class WorkerThread(QtCore.QThread): argv.append("--quality=1") elif GUI.QualityBox.checkState() == 2: argv.append("--quality=2") + if GUI.currentMode == 1: + if profile in ['KFHD', 'KFHD8', 'KFHDX', 'KFHDX8']: + argv.append("--upscale") if GUI.currentMode > 1: if GUI.ProcessingBox.isChecked(): argv.append("--noprocessing") @@ -789,6 +792,9 @@ class KCCGUI(KCC_ui.Ui_KCC): GUI.QualityBox.setChecked(False) GUI.QualityBox.setEnabled(False) self.QualityBoxDisabled = True + if value in [4, 5, 6, 7]: + if GUI.UpscaleBox.isEnabled(): + GUI.UpscaleBox.setChecked(True) else: if not GUI.WebtoonBox.isChecked() and not GUI.ProcessingBox.isChecked() \ and str(GUI.FormatBox.currentText()) != 'CBZ':