Thread: <svg> to <img>
View Single Post
Old 02-14-2012, 07:06 PM   #1
codrutoctavian
Enthusiast
codrutoctavian began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Jul 2009
Location: Bucharest, Romania
Device: Kindle 3
<svg> to <img>

I am trying to convert a book from epub to mobi. As Kindle does not support SVG I am trying to convert these tags in the html from:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 11 600 800" width="100%">
<image height="800" transform="translate(0 0)" width="600" xlink:href="images/cover.jpg"/>
</svg>

to <img> but I do not know how. I tried:

<img src="images/cover.jpg" height="800" width="600" />

However the images is now not centered in the web browser and it affects how it looks on Kindle too. What's the correct translation from svg to img? These are not svg images anyway.
codrutoctavian is offline   Reply With Quote