Increase size of cover rendered from HTML

This commit is contained in:
Kovid Goyal 2025-02-19 19:30:56 +05:30
parent 03cc258c25
commit 0941278e93
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -94,7 +94,7 @@ def extract_calibre_cover(raw, base, log):
return return_raster_image(img) return return_raster_image(img)
def render_html_svg_workaround(path_to_html, log, width=590, height=750, root=''): def render_html_svg_workaround(path_to_html, log, width=1200, height=1600, root=''):
from calibre.ebooks.oeb.base import SVG_NS from calibre.ebooks.oeb.base import SVG_NS
with open(path_to_html, 'rb') as f: with open(path_to_html, 'rb') as f:
raw = f.read() raw = f.read()