mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:23:47 +02:00
...
This commit is contained in:
parent
32cbc84fc3
commit
ce90b49fb5
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ def rescale(self, qt=True):
|
|||
ext = 'JPEG'
|
||||
|
||||
raw = item.data
|
||||
if not raw: continue
|
||||
if hasattr(raw, 'xpath') or not raw:
|
||||
# Probably an svg image
|
||||
continue
|
||||
try:
|
||||
img = Image()
|
||||
img.load(raw)
|
||||
|
|
|
|||
Loading…
Reference in a new issue