diff --git a/src/calibre/utils/magick/draw.py b/src/calibre/utils/magick/draw.py index 2e94a70674..379796e47c 100644 --- a/src/calibre/utils/magick/draw.py +++ b/src/calibre/utils/magick/draw.py @@ -145,10 +145,7 @@ def identify_data(data): # ImageMagick segfaults when trying to identify SVG images raise ValueError('Identifying svg images is not supported') img = Image() - if hasattr(img, 'identify'): - img.identify(data) - else: - img.load(data) + img.identify(data) width, height = img.size fmt = img.format return (width, height, fmt)