View Full Version : How to get ePub covers to display?

06-24-2011, 04:56 PM
I've been editing an epub I have and the cover used to show up on my nook (the little dust jacket that appears in your library view) until I used Sigil to save the epub. Now the book appears as having no cover.

I'm curious what file in the epub tells the reader where to grab the cover image from as well as what the necessary syntax is. From dissecting my old epub file I can't really tell as there are so many references to "cover.jpg" and in spite of having copied these over from old to new, it still won't appear.


06-24-2011, 07:46 PM
I have seen this with some Penguin books.

The cover images were stored in the html files as inline svg data.

Calibre extracted the cover images OK but Sigil (HTML Tidy?) apparently cannot understand this format and removes the code

06-25-2011, 01:46 AM
You'd probably be better off asking about this in the Sigil forum.

06-25-2011, 02:32 AM
For the books that do not show the cover, I manually edit the OPF file by adding an entry in the manifest section, named "cover" and referencing the cover image:

<item id="cover" href="Images/bookcover.jpg" media-type="image/jpeg"/>

06-25-2011, 04:00 AM
Also make sure your cover is included in the metadata in your .opf file

<meta name="cover" content="cover-image"/>

Threepress has a great article on covers in epubs. I've always used to to make sure my covers will display correctly. Follow all the code in it, and your cover will display.