mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Update picture.py
This commit is contained in:
1 parent
4bbf7c2ed2
commit
30cbfe2154
2 files changed
+3
-22
No files matched your search
@@ -92,7 +92,7 @@ def get_size(data, default_width=0, default_height=0):
|
||||
# End of https://github.com/shibukawa/imagesize_py
|
||||
|
||||
# handle SVG
|
||||
elif size >= 10 and data.startswith(b'<?xml'):
|
||||
elif size >= 10 and (data.startswith(b'<?xml') or data.startswith(b'<svg')):
|
||||
filetype = "svg"
|
||||
fhandle = io.BytesIO(data)
|
||||
tree = ElementTree()
|
||||
|
||||
Reference in new issue
Block a user