mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression where covers were not being rescaled.
This commit is contained in:
parent
79f43824fc
commit
7b4e246b37
@ -239,6 +239,8 @@ class HTMLConverter(object):
|
||||
try:
|
||||
self.add_file(path)
|
||||
except:
|
||||
if self.link_level == 0: # Die on errors in the first level
|
||||
raise
|
||||
for link in self.links:
|
||||
if link['path'] == path:
|
||||
self.links.remove(link)
|
||||
@ -1560,6 +1562,7 @@ def process_file(path, options, logger=None):
|
||||
cf = PersistentTemporaryFile(prefix=__appname__+"_", suffix=".jpg")
|
||||
cf.close()
|
||||
cim.save(cf.name)
|
||||
options.cover = cf.name
|
||||
|
||||
tim = im.resize((int(0.75*th), th), PILImage.ANTIALIAS).convert('RGB')
|
||||
tf = PersistentTemporaryFile(prefix="html2lrf_", suffix=".jpg")
|
||||
|
Loading…
x
Reference in New Issue
Block a user