Quote:
Originally Posted by philm
Okay,
So far, I found that:
- <img> doesn't work in Sigil readers (Bibi, EPUBJS, Readium), but embedding it in <svg> works. Very surprising
|
You must be doing something wrong. Watch the newEpub3.epub I attach where I employ the <img> tag to display the svg image. In the first page you can see the image not centered vertically and in the second page you'll see the image vertically center to mimic a svg wrapper. And the epub is perfectly displayed on Readium, Bibi and EpubJS (in fact, is correctly displayed everywhere if the ereader supports epub3).
Quote:
- tables and SVG are not implemented in SumatraPDF, others?
|
SumatraPDF? But you had said us that you were working under Linux and Sumatra is a Windows pdf reader. And Sumatra is not the best option to display epub.
Quote:
- height in <svg> looks like it means "visible height of the image relative to its width". A 1920x1080 at 100% for width and height will be a white square with the image in the center, while height="56%" (1080/1920) is enough to fully display it. It's not like HTML.
|
Well, well, well. This is not a place to explain in deep how the "viewbox" property works. If you want to learn a bit about svg, you should read the following page:
https://jenkov.com/tutorials/svg/index.html
And regarding the viewbox property, read:
https://jenkov.com/tutorials/svg/svg...-view-box.html