SVGs without a width and height set are not loading
Hi,
I had issues getting my SVG to show up in mods. I selected the SVG file, but the preview remained empty. After some testing I think it's because there was no explicit width
and height
set in the SVG. SVGs saved from Adobe Illustrator do not have a width
and height
set, instead it uses the viewbox
. Perhaps mods could be adjusted to also process files without an explicit width
and height
, but with a viewbox
?
Below are two test files. It's a simple outlined circle. The top in the SVG file I get from Illustrator with the basic settings. It doesn't load in mods (for me)
This SVG below is a version where all I did was add width="300px" height="300px"
to the SVG. This one did load in mods: