mirror of
https://github.com/ciromattia/kcc
synced 2025-12-23 22:51:45 +00:00
This reverts commit 1dd36e08eb.
This commit is contained in:
@@ -94,8 +94,7 @@ class ProfileData:
|
|||||||
'KO': ("Kindle Oasis 2/3/Paperwhite 12/Colorsoft 12", (1264, 1680), Palette16, 1.8),
|
'KO': ("Kindle Oasis 2/3/Paperwhite 12/Colorsoft 12", (1264, 1680), Palette16, 1.8),
|
||||||
'K11': ("Kindle 11", (1072, 1448), Palette16, 1.8),
|
'K11': ("Kindle 11", (1072, 1448), Palette16, 1.8),
|
||||||
'KPW5': ("Kindle Paperwhite 5/Signature Edition", (1236, 1648), 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", (1860, 2480), Palette16, 1.8),
|
||||||
'KS': ("Kindle Scribe", (1440, 1920), Palette16, 1.8),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfilesKindle = {
|
ProfilesKindle = {
|
||||||
@@ -360,6 +359,9 @@ class ComicPage:
|
|||||||
self.image = self.image.filter(unsharpFilter)
|
self.image = self.image.filter(unsharpFilter)
|
||||||
|
|
||||||
def resizeImage(self):
|
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_device = float(self.size[1]) / float(self.size[0])
|
||||||
ratio_image = float(self.image.size[1]) / float(self.image.size[0])
|
ratio_image = float(self.image.size[1]) / float(self.image.size[0])
|
||||||
method = self.resize_method()
|
method = self.resize_method()
|
||||||
|
|||||||
Reference in New Issue
Block a user