I’m sorry my replies are getting a bit rude, I am reaching such a state of frustration with this
I spent the whole day on this again, and I found two codes that really aren’t that great but eases the work a little bit, and they
seem to be working fine (tested with ePub3).
Link to SVG image with "calc" to ease the process:
Code:
<p class="texte"><img style="width: height: 1em; calc(1em*width/height);" alt="Logo Canada" src="../Images/canada.svg"/></p>
SVG code embedded, can be processed with regex so useful for books with lots of SVG. But properties="svg" has to be added in the content.opf. So SVG markup is pasted in the ePub, and this is added in the <svg>:
Code:
preserveAspectRatio="xMidYMin slice" style="width: 1em; padding-bottom: calc(1em*height/width); height: 1px; overflow: visible"