1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Revert "fix Kindle Scribe panel view broken in 6.1.0 (#894)" (#903)

This reverts commit 1dd36e08eb.
This commit is contained in:
Alex Xu
2025-04-17 09:17:47 -07:00
committed by GitHub
parent 3517994d37
commit 36180f7904

View File

@@ -94,8 +94,7 @@ class ProfileData:
'KO': ("Kindle Oasis 2/3/Paperwhite 12/Colorsoft 12", (1264, 1680), Palette16, 1.8),
'K11': ("Kindle 11", (1072, 1448), Palette16, 1.8),
'KPW5': ("Kindle Paperwhite 5/Signature Edition", (1236, 1648), Palette16, 1.8),
# kindle scribe conversion to mobi is limited in resolution by kindlegen, same with send to kindle and epub
'KS': ("Kindle Scribe", (1440, 1920), Palette16, 1.8),
'KS': ("Kindle Scribe", (1860, 2480), Palette16, 1.8),
}
ProfilesKindle = {
@@ -360,6 +359,9 @@ class ComicPage:
self.image = self.image.filter(unsharpFilter)
def resizeImage(self):
# kindle scribe conversion to mobi is limited in resolution by kindlegen, same with send to kindle and epub
if self.kindle_scribe_azw3:
self.size = (1440, 1920)
ratio_device = float(self.size[1]) / float(self.size[0])
ratio_image = float(self.image.size[1]) / float(self.image.size[0])
method = self.resize_method()