From b14f59e77a665d24c2995367725d84daa3aad741 Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Sat, 13 May 2023 03:40:52 +0200 Subject: [PATCH] limit kindle scribe image size to (1440, 1920) when using kindlegen --- kindlecomicconverter/KCC_gui.py | 2 +- kindlecomicconverter/comic2ebook.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index affeaef2..e65030b6 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -1153,7 +1153,7 @@ def __init__(self, kccapp, kccwindow): self.versionCheck.start() self.tray.show() - # Cleanup unfisnished conversion + # Cleanup unfinished conversion for root, dirs, _ in walkLevel(gettempdir(), 0): for tempdir in dirs: if tempdir.startswith('KCC-'): diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 7b69181c..1a4f47d5 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1092,6 +1092,10 @@ def checkOptions(options): image.ProfileData.Profiles["Custom"] = newProfile options.profile = "Custom" options.profileData = image.ProfileData.Profiles[options.profile] + # kindle scribe conversion to mobi is limited in resolution by kindlegen + if options.profile == 'KS' and options.format == 'MOBI': + options.profileData = list(options.profileData) + options.profileData[1] = (1440, 1920) return options @@ -1147,7 +1151,7 @@ def makeBook(source, qtgui=None): y = image.ProfileData.Profiles[options.profile][1][1] comic2panel.main(['-y ' + str(y), '-i', '-m', path], qtgui) if options.noprocessing: - print("Do not process image, ignore any profil or processing option") + print("Do not process image, ignore any profile or processing option") else: print("Processing images...") if GUI: