![]() |
#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). |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
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 | |
|
![]() |
#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?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes it is
|
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
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.
|
![]() |
![]() |
![]() |
#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... |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm curious as to why you want this behavior?
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Feb 2009
Device: Kindle 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#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...
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub and cover images, question about file storage | JGB | Calibre | 10 | 10-11-2010 11:48 PM |
Cover Images | rogue_ronin | Workshop | 0 | 12-11-2009 03:51 PM |
cover images | Nate the great | Workshop | 7 | 10-25-2009 12:34 PM |
eBook cover images | pdurrant | Upload Help | 23 | 02-21-2009 06:49 AM |
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) | JEMelby | Sony Reader | 0 | 07-27-2007 09:18 PM |