When exporting an svg from Adobe Illustrator, by default, "responsive" is ticked and no width or height tag is set. In that case, a vague error is thrown. I think it would really help a new user if there was a check and an appropriate message if the svg has no width or height tag.
import svgutils.compose as sc
sc.SVG(os.path.join(file_directory, 'face_border resp.svg'))
File "[main]", line 55, in
sc.SVG(os.path.join(file_directory, 'face_border resp.svg'))
File "C:\Users\keith\miniconda3\lib\site-packages\svgutils\compose.py", line 122, in init
if svg.width.endswith("%"):
AttributeError: 'NoneType' object has no attribute 'endswith'
Thanks!
When exporting an svg from Adobe Illustrator, by default, "responsive" is ticked and no width or height tag is set. In that case, a vague error is thrown. I think it would really help a new user if there was a check and an appropriate message if the svg has no width or height tag.
Thanks!