mirror of
https://github.com/ciromattia/kcc
synced 2025-12-16 03:06:33 +00:00
limit kindle scribe image size to (1440, 1920) when using kindlegen (#516)
This commit is contained in:
@@ -1092,8 +1092,8 @@ def checkOptions(options):
|
|||||||
image.ProfileData.Profiles["Custom"] = newProfile
|
image.ProfileData.Profiles["Custom"] = newProfile
|
||||||
options.profile = "Custom"
|
options.profile = "Custom"
|
||||||
options.profileData = image.ProfileData.Profiles[options.profile]
|
options.profileData = image.ProfileData.Profiles[options.profile]
|
||||||
# kindle scribe conversion to mobi is limited in resolution by kindlegen
|
# kindle scribe conversion to mobi is limited in resolution by kindlegen, same with send to kindle and epub
|
||||||
if options.profile == 'KS' and options.format == 'MOBI':
|
if options.profile == 'KS' and (options.format == 'MOBI' or options.format == 'EPUB'):
|
||||||
options.profileData = list(options.profileData)
|
options.profileData = list(options.profileData)
|
||||||
options.profileData[1] = (1440, 1920)
|
options.profileData[1] = (1440, 1920)
|
||||||
return options
|
return options
|
||||||
|
|||||||
Reference in New Issue
Block a user