mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove backwards compat code
This commit is contained in:
parent
75e71e34e9
commit
0621499d4b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user