From adf48d24f978ead73a0b5d7dfc94463f8a4fef18 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 22 Feb 2026 11:49:27 -0800 Subject: [PATCH] clarify coverfill is not implemented for kindle scribe (#1255) --- gui/KCC.ui | 2 +- kindlecomicconverter/KCC_ui.py | 2 +- kindlecomicconverter/image.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/KCC.ui b/gui/KCC.ui index 9ea9ad7..2ce5f4a 100644 --- a/gui/KCC.ui +++ b/gui/KCC.ui @@ -912,7 +912,7 @@ Useful for really weird PDFs. Resize cover to exact device resolution by center-cropping to aspect ratio first. -May crop top/bottom or left/right depending on source aspect ratio. +May crop top/bottom or left/right depending on source aspect ratio. Not implemented for Kindle Scribe. Cover Fill diff --git a/kindlecomicconverter/KCC_ui.py b/kindlecomicconverter/KCC_ui.py index 98cf7f1..f746aa9 100644 --- a/kindlecomicconverter/KCC_ui.py +++ b/kindlecomicconverter/KCC_ui.py @@ -752,7 +752,7 @@ class Ui_mainWindow(object): self.pdfExtractBox.setText(QCoreApplication.translate("mainWindow", u"PDF Legacy Extract", None)) #if QT_CONFIG(tooltip) self.coverFillBox.setToolTip(QCoreApplication.translate("mainWindow", u"Resize cover to exact device resolution by center-cropping to aspect ratio first.\n" -"May crop top/bottom or left/right depending on source aspect ratio.", None)) +"May crop top/bottom or left/right depending on source aspect ratio. Not implemented for Kindle Scribe.", None)) #endif // QT_CONFIG(tooltip) self.coverFillBox.setText(QCoreApplication.translate("mainWindow", u"Cover Fill", None)) self.gammaLabel.setText(QCoreApplication.translate("mainWindow", u"Gamma: Auto", None)) diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 44a7532..3341940 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -569,7 +569,8 @@ class Cover: if self.options.kindle_scribe_azw3: size[0] = min(size[0], 1920) size[1] = min(size[1], 1920) - if self.options.coverfill: + if self.options.coverfill and not self.options.kindle_scribe_azw3: + # TODO: Kindle Scribe case self.image = ImageOps.fit(self.image, tuple(size), Image.Resampling.LANCZOS, centering=(0.5, 0.5)) else: self.image.thumbnail(tuple(size), Image.Resampling.LANCZOS)