mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
32cbc84fc3
commit
ce90b49fb5
@ -36,7 +36,9 @@ class RescaleImages(object):
|
|||||||
ext = 'JPEG'
|
ext = 'JPEG'
|
||||||
|
|
||||||
raw = item.data
|
raw = item.data
|
||||||
if not raw: continue
|
if hasattr(raw, 'xpath') or not raw:
|
||||||
|
# Probably an svg image
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
img = Image()
|
img = Image()
|
||||||
img.load(raw)
|
img.load(raw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user