View Single Post
Old 12-13-2010, 09:59 PM   #5
cscotts
Junior Member
cscotts began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Kindle, iPad
Quote:
The problem is not cover modification it is that the EPUB file does not have a cover, instead EPUB requires reading system to render the first "screenfull" of the book as the cover.
So in my OPF file I have lines:

Code:
Metadata section:
    <meta name="cover" content="my-cover-image"/>

Manifest section:
    <item href="OEBPS/cover.html" id="my-html-cover" media-type="application/xhtml+xml"/>
    <item href="OEBPS/cover.jpg" id="my-cover-image" media-type="image/jpeg"/>

Spine section:
    <itemref idref="my-html-cover" linear="no" />

Guide section:
    <reference type="cover" title="Cover" href="cover.html"/>
Are those lines not good enough, or somehow non-standard? It seems like if I do an EPUB->EPUB convert calibre basically just replaces the "cover.html" with "titlepage.xhtml" and wraps the cover <img> tag in a <svg> tag.


With regards to the command lineoutput, I had gotten the two error messages, and I wasn't really sure what they meant. They result from not being able to render the cover?

Code:
Manifest item 'calibre_raster_cover.jpg' not found
Guide reference 'calibre_raster_cover.jpg' not found
cscotts is offline   Reply With Quote