Quote:
Originally Posted by foosion
What puzzles me is why it would work for days, then suddenly stop working.
The latest problem covers:
Code:
<div class="cover" id="cover">
<a href="9780063235915_Contents.xhtml#rcover">
<img alt="image" src="../images/9780063235915_Cover.jpg"/>
</a></div>
Code:
<p id="ji1838" style="text-align:center;">
<img alt="image" epub:type="cover" role="doc-cover" src="images/9780306830532.jpg" style="height: 100%;"/>
</p>
This is after it was working, then stopped, then started working again after uploading the cover with KoboUtilities.
|
KoboUtilities will upload the cover image and flag it in the database bypassing reading the information from the ePub file. What I was looking for was in the content.opf (actually filename.opf but content is popular):
Code:
<item id="cover" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/>
See the image for the text file bits.
The code I use for displaying the cover image is an SVG wrapper with ePub2 and ePub3 compatibility courtesy of RbJrg (see
this message for the code.