Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit kindle scribe image size to (1440, 1920) when using kindlegen #514

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kindlecomicconverter/KCC_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-'):
Expand Down
6 changes: 5 additions & 1 deletion kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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:
Expand Down