View Single Post
Old 01-29-2019, 06:47 AM   #13
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
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"

Last edited by momoha; 01-29-2019 at 07:21 AM.
momoha is offline   Reply With Quote