04-24-2009, 04:13 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
trouble with ePub cover images
Hi,
I've been creating some ebooks and reading them in calibre, but it isn't detecting the cover images. The ebooks are in ePub format and the cover image in each book is specified in the content.opf file like so: Code:
<guide> <reference type="cover" title ="Cover Page" href="images/cover.jpg" /> </guide> What am I doing wrong? Do I have to add a reference to the cover image somewhere else? I am running version 0.5.9 on Windows Vista. I am creating the ebooks outside of calibre and simply importing them into calibre (without any conversion). |
04-24-2009, 04:18 PM | #2 |
creator of calibre
Posts: 44,562
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is an incorrect way to specify the cover. The fact that it works in mobi pocket reader is a bug in mobipocket reader.
Either create an epub file in calibre with a cover or download one from feedbooks.com to see how to specify covers in epub |
Advert | |
|
04-24-2009, 04:50 PM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
Okay, I did what you suggested. All I saw was that the cover image was placed inside an HTML page and then the page was referenced in the guide, rather than the image directly. Is this correct?
|
04-24-2009, 05:16 PM | #4 |
creator of calibre
Posts: 44,562
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes it is
|
04-27-2009, 12:45 PM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
I've been messing around with this a bit and seem to have found that calibre uses the first page in the spine as the cover image, regardless of what is specified in the guide. In fact, it seems to ignore the guide altogether as far as I can tell. The problem with this is that the spine also defines the reading order of the pages, which forces the cover image to always be the first page of the book.
Is there any way to specify a cover image without having it also be the first page that the book opens to when someone starts reading it? |
Advert | |
|
04-27-2009, 03:06 PM | #6 |
creator of calibre
Posts: 44,562
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In the EPUb format? You can set the linear="no" attribute on the first spine item. But them most EPUB readers will have no way of ever getting to the cover and most users will never see it. This is a limitation of EPUB and nothing to do with calibre. For example calibre generated MOBI files have a cover that isn't the first page.
|
04-27-2009, 04:05 PM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
Hmm. I set linear="no" for the cover's itemref in the spine like so:
Code:
<itemref idref="cover" linear="no" /> I'd like to have the cover treated basically as an icon for the book. I.e. the thumbnail image of the book shows the cover, but when you open it the cover isn't displayed. Or at least find a way to move it to the end of the book. I guess this just might not be possible with ePub... |
04-27-2009, 04:09 PM | #8 |
creator of calibre
Posts: 44,562
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm curious as to why you want this behavior?
|
04-27-2009, 04:42 PM | #9 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
Quote:
|
|
04-27-2009, 06:25 PM | #10 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
04-28-2009, 07:16 PM | #11 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
Thanks for the help, guys. I may not be able to get my ePubs perfect, but at least my Kindle 2 versions are nearly flawless...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub and cover images, question about file storage | JGB | Calibre | 10 | 10-12-2010 12:48 AM |
Cover Images | rogue_ronin | Workshop | 0 | 12-11-2009 04:51 PM |
cover images | Nate the great | Workshop | 7 | 10-25-2009 01:34 PM |
eBook cover images | pdurrant | Upload Help | 23 | 02-21-2009 07:49 AM |
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) | JEMelby | Sony Reader | 0 | 07-27-2007 10:18 PM |