mirror of
https://github.com/ciromattia/kcc
synced 2026-03-29 21:25:28 +00:00
clarify coverfill is not implemented for kindle scribe (#1255)
This commit is contained in:
@@ -912,7 +912,7 @@ Useful for really weird PDFs.</string>
|
||||
<widget class="QCheckBox" name="coverFillBox">
|
||||
<property name="toolTip">
|
||||
<string>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.</string>
|
||||
May crop top/bottom or left/right depending on source aspect ratio. Not implemented for Kindle Scribe.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cover Fill</string>
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user