View Full Version : gets SVG when should be JPG


JSWolf
04-21-2009, 03:09 PM
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 584 754" width="100%">
<rect fill="#000007" height="100%" width="584" x="0" y="0"/>
<image height="754" transform="translate(0 0)" width="584" xlink:href="images/9780007322596.jpg"/>
</svg>

The following code confuses Calibre and it thinks it should be rasterizing SVG images and the images come out blank.

The code is from ePub. The LOTR omnibus in ePub is where the code comes from.

kovidgoyal
04-21-2009, 03:18 PM
this is due to a limitation in the SVG handling of the library that calibre uses to render HTML. UNfortunately, there isn't anything I can do to fix it.

JSWolf
04-21-2009, 03:35 PM
What I did do was replace the SVG code with standard html code for the images in the two files that have this problem and it worked fine. But having to do so is not good.