View Single Post
Old 03-27-2014, 03:46 PM   #14
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by jackie_w View Post
Is there some reason why you didn't use davidfor's suggested svg code quoted in your post (which BTW is also how calibre codes svg cover images) i.e.
Code:
    <body>
        <div>
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                width="100%" height="100%" viewBox="0 0 970 1360"
                preserveAspectRatio="xMidYMid meet">
                <image width="970" height="1360" xlink:href="../Images/Silencio-de-Blanca.jpg"/>
            </svg>
        </div>
    </body>
Added: You need to wrap <svg> code in <div> tags...
Added2: ... or maybe it's only Sigil which flags an error if you don't.

At least, this seems to work OK for standard epubs on Kobo fw3.2.0. but I don't know whether it also works in kepubs.
Well, probably because I copied the structure from other source (probably other book) where there wasn't a <div> pair in the middle.

Nevertheless I've tested it:
Code:
<body id="Silencio_de_blanca" xml:lang="es-ES">

  <!-- <div><img alt="" src="../Images/Silencio-de-Blanca.jpg"/></div> -->

  <div>

    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 970 1360" width="100%">
      <image height="1360" transform="translate(0 0)" width="970" xlink:href="../Images/Silencio-de-Blanca.jpg"/>
    </svg>

  </div>

</body>
and it doesn't work fine either.

As a matter of fact, this is not the first book I suffer with the issue but I was lazy to post it before. (Kobo issues are capable to frustrate the most calmed and relaxed Tibetan monk).

And yes, the trouble is present in ACCESS (kepubs) not in RMSDK (epubs). But the origin of this thread (issues with <img>s in covers) is also an ACCESS only issue.

Last edited by arspr; 03-27-2014 at 03:49 PM.
arspr is offline   Reply With Quote