Hi there,
first, it is important to be aware of the difference between images and vectors (like svg). Vectors don’t necessarily have a width, height or aspect ratio at all! They are only a list of data that is basically some kind of blueprint for the final image. So in the end, svg file are no objects like png or jpg files.
Regarding your feature request:
This would be very tricky. One could give the svg an auto width, but the svg still would not know which height to display. You could then add the ratio information in the svg file itself, but this would only be a quickfix for your specific problem. The only “real” solution would be to constantly check the size of the container around the svg via Javascript and calculate the svg size dynamically. To be honest, I don’t want to blow up the plugin with such performance consuming functions.
Right now, I can’t imagine any other way that would work with vectors.
You can try the following: Add a usual png image and repleace the filename with the svg filename. Some browser might be able to read this. However, this only works with some svg files and not at every system. Another workaround would be to integrate the svg code directly into your theme and add special css classes to it (not sure if this would work).
My suggestion for you: If you really need the svg files to resize dynamically, you should change their width and height individually via JavaScript.
Finally, I think you are better off with iconfonts. They behave more like normale images or text and can be easily adjusted dynamically.
Hope this helps.
Best,
Jens