View Single Post
Old 09-06-2024, 01:51 PM   #84
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,063
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-09-06 104427.png
Views:	85
Size:	11.0 KB
ID:	210651  
DNSB is offline   Reply With Quote