View Single Post
Old 04-28-2011, 01:56 PM   #40
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,143
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Faster View Post
Code:
<body>
  <div>
    <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 600 800" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="800" width="600" xlink:href="../Images/cover.jpg"></image>
    </svg>
  </div>
</body>
With regard to some of the procedures suggested above, you don't need to bother. Just do what I indicated. Calls to the missing .xpgt file, which I asked you to delete, are simply ignored. You don't need to remove all the calls.

Book checked and working as desired on a Sony PRS650.

Please check your mail box as I've sent you a PM.
It is a much better idea to remove the page-template references. I do it all the time and when I use FlightCrew to verify the ePub, it will yell at me if the page-template reference is there.

Also, the code above is a problem. ADE needs to have the actual pixels of the image and not an arbitrary size. I've mentioned that as a bug and it's been fixed in Calibre. While ADE may be at fault, using the pixels of the image works in ADE and every other system where that code may work.

The correct code that will work on the Sony Reader and in the desktop ADE is...

Code:
<body>
  <div>
    <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 825 1200" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="1200" width="825" xlink:href="../Images/cover.jpg"></image>
    </svg>
  </div>
</body>

Last edited by JSWolf; 04-28-2011 at 01:58 PM.
JSWolf is offline   Reply With Quote