mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix too small images being identified as cover in DOCX files
This commit is contained in:
parent
395f21054b
commit
c2278d2442
@ -27,7 +27,7 @@ def get_metadata(stream):
|
||||
width, height, fmt = identify_data(raw)
|
||||
except:
|
||||
continue
|
||||
if 0.8 <= height/width <= 1.8 and height*width >= 12000:
|
||||
if 0.8 <= height/width <= 1.8 and height*width >= 160000:
|
||||
cdata = (fmt, raw)
|
||||
if cdata is not None:
|
||||
mi.cover_data = cdata
|
||||
|
Loading…
x
Reference in New Issue
Block a user