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:
|
try:
|
||||||
self.add_file(path)
|
self.add_file(path)
|
||||||
except:
|
except:
|
||||||
|
if self.link_level == 0: # Die on errors in the first level
|
||||||
|
raise
|
||||||
for link in self.links:
|
for link in self.links:
|
||||||
if link['path'] == path:
|
if link['path'] == path:
|
||||||
self.links.remove(link)
|
self.links.remove(link)
|
||||||
@ -1560,6 +1562,7 @@ def process_file(path, options, logger=None):
|
|||||||
cf = PersistentTemporaryFile(prefix=__appname__+"_", suffix=".jpg")
|
cf = PersistentTemporaryFile(prefix=__appname__+"_", suffix=".jpg")
|
||||||
cf.close()
|
cf.close()
|
||||||
cim.save(cf.name)
|
cim.save(cf.name)
|
||||||
|
options.cover = cf.name
|
||||||
|
|
||||||
tim = im.resize((int(0.75*th), th), PILImage.ANTIALIAS).convert('RGB')
|
tim = im.resize((int(0.75*th), th), PILImage.ANTIALIAS).convert('RGB')
|
||||||
tf = PersistentTemporaryFile(prefix="html2lrf_", suffix=".jpg")
|
tf = PersistentTemporaryFile(prefix="html2lrf_", suffix=".jpg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user