Update picture.py

This commit is contained in:
piotrpekala7 committed 2021-04-08 23:29:46 +02:00
1 parent 4bbf7c2ed2
commit 30cbfe2154
2 files changed
+3 -22

No files matched your search

+1 -1
View File
@@ -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()