EPUB/MOBI Catalogs: Increase the maximum thumbnail size to 3 inches from 2 inches

This commit is contained in:
Kovid Goyal 2021-12-14 20:43:40 +05:30
parent 5101ca89de
commit 4669ca7d8b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -726,7 +726,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
<property name="maximum"> <property name="maximum">
<double>5.000000000000000</double> <double>3.000000000000000</double>
</property> </property>
<property name="singleStep"> <property name="singleStep">
<double>0.100000000000000</double> <double>0.100000000000000</double>
@ -771,7 +771,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<resources/> <resources/>
<connections/> <connections/>
<buttongroups> <buttongroups>
<buttongroup name="cover_options_bg"/>
<buttongroup name="merge_options_bg"/> <buttongroup name="merge_options_bg"/>
<buttongroup name="cover_options_bg"/>
</buttongroups> </buttongroups>
</ui> </ui>

View File

@ -33,7 +33,7 @@ class EPUB_MOBI(CatalogPlugin):
file_types = {'azw3', 'epub', 'mobi'} file_types = {'azw3', 'epub', 'mobi'}
THUMB_SMALLEST = "1.0" THUMB_SMALLEST = "1.0"
THUMB_LARGEST = "2.0" THUMB_LARGEST = "3.0"
cli_options = [Option('--catalog-title', # {{{ cli_options = [Option('--catalog-title', # {{{
default='My Books', default='My Books',
@ -349,7 +349,7 @@ class EPUB_MOBI(CatalogPlugin):
log.warning("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_LARGEST)) log.warning("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_LARGEST))
opts.thumb_width = self.THUMB_LARGEST opts.thumb_width = self.THUMB_LARGEST
opts.thumb_width = "%.2f" % float(opts.thumb_width) opts.thumb_width = "%.2f" % float(opts.thumb_width)
except: except Exception:
log.error("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_SMALLEST)) log.error("coercing thumb_width from '%s' to '%s'" % (opts.thumb_width, self.THUMB_SMALLEST))
opts.thumb_width = "1.0" opts.thumb_width = "1.0"