mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the default size for generated covers larger
This commit is contained in:
parent
c7e842de7c
commit
746cd9a628
@ -30,11 +30,11 @@ from calibre.utils.config import JSONConfig
|
||||
|
||||
# Default settings {{{
|
||||
cprefs = JSONConfig('cover_generation')
|
||||
cprefs.defaults['title_font_size'] = 60 # px
|
||||
cprefs.defaults['subtitle_font_size'] = 40 # px
|
||||
cprefs.defaults['footer_font_size'] = 40 # px
|
||||
cprefs.defaults['cover_width'] = 600 # px
|
||||
cprefs.defaults['cover_height'] = 800 # px
|
||||
cprefs.defaults['title_font_size'] = 120 # px
|
||||
cprefs.defaults['subtitle_font_size'] = 80 # px
|
||||
cprefs.defaults['footer_font_size'] = 80 # px
|
||||
cprefs.defaults['cover_width'] = 1200 # px
|
||||
cprefs.defaults['cover_height'] = 1600 # px
|
||||
cprefs.defaults['title_font_family'] = None
|
||||
cprefs.defaults['subtitle_font_family'] = None
|
||||
cprefs.defaults['footer_font_family'] = None
|
||||
@ -501,7 +501,7 @@ def create_cover(title, authors, series=None, series_index=1, prefs=None, as_qim
|
||||
prefs or cprefs, title_template=d['title_template'], subtitle_template=d['subtitle_template'], footer_template=d['footer_template'])
|
||||
return generate_cover(mi, prefs=prefs, as_qimage=as_qimage)
|
||||
|
||||
def test(scale=0.5):
|
||||
def test(scale=0.25):
|
||||
from PyQt5.Qt import QLabel, QApplication, QPixmap, QMainWindow, QWidget, QScrollArea, QGridLayout
|
||||
app = QApplication([])
|
||||
mi = Metadata('xxx', ['Kovid Goyal', 'John Q. Doe', 'Author'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user