Quote:
Originally Posted by kovidgoyal
Try it and see.
|
I tried it and it made the image way too wide. Now, I found the solution.
Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 600 800" preserveAspectRatio="xMidYMid meet">
<image width="600" height="800" xlink:href="cover.jpeg"/>
If you change the 600 and 800 to the actual resolution of the image, then it works perfectly in ebook-viewer and in ADE. So fixing it to work in ADE does not break it in ebook-viewer.