diff --git a/src/calibre/ebooks/oeb/transforms/rescale.py b/src/calibre/ebooks/oeb/transforms/rescale.py index e984fad38a..7f07e242af 100644 --- a/src/calibre/ebooks/oeb/transforms/rescale.py +++ b/src/calibre/ebooks/oeb/transforms/rescale.py @@ -36,7 +36,9 @@ class RescaleImages(object): 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)