05-20-2010, 12:58 AM | #1 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Epub cover image issue
Hello Everyone,
I have some issue with cover page. The problem is my cover image showing last of the page when I load it in calibre. I have done .opf like this in <metadata> section put this <meta name='cover' content='cover-image'/> and in <manifest> section cover image and title page like this. <item id="title" href="title.html" media-type="application/xhtml+xml" /> <item id='cover-image' href='images/cover.jpg' media-type='image/jpeg' /> etc.. 'images/cover.jpg' in title.html file. and in <spine> section , <spine toc="ncx"> <itemref idref="title" linear="no"/> <itemref idref="other pages" /> etc... finally in <guide> section <guide> <reference type="cover" title="Cover Image" href="title.html"/> etc I want to show first cover image when I load .epub in calibre. Can you please help me, if I made any mistake in that or need to add anything else? Please help me. Vipin |
05-20-2010, 05:27 AM | #2 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Items in the spine with linear="no" don't normally show in Calibre ebook reader. They are accessible if there are hyperlinks to them, but not through normal browsing.
|
Advert | |
|
05-20-2010, 07:44 AM | #3 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Thanks for your reply.
But why cover page showing at the end of the book? Actually I am converting .epub to .mobi for kindle. If I remove linear="no" , then it will show cover page at the start, but in Kindle previewer it showing two cover pages. Spend so much time on this. Please help me. Thanks Vipin |
05-20-2010, 08:23 AM | #4 |
The Grand Mouse 高貴的老鼠
Posts: 72,195
Karma: 308792702
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
05-20-2010, 08:32 AM | #5 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
I have checked it in bookworm.oreilly.com. I think here it is looking good.
But how can we fix it in calibre and .mobi file in kindle previewer? Thanks, vipin |
Advert | |
|
05-21-2010, 05:29 AM | #6 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
Hi vipinpa, i've moved your thread to the epub forum where it will be more visible. good luck with your problem.
|
05-21-2010, 05:39 AM | #7 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Hello zelda_pinwheel,
Thanks for moving my thread to epub forum. I am really waiting for a solution.. Thanks, Vipin |
05-21-2010, 06:11 AM | #8 | |
The Grand Mouse 高貴的老鼠
Posts: 72,195
Karma: 308792702
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
I'd suggest keeping the linear="no", as otherwise you'll have problems with the Kindle file having two versions of the cover image at the front. ePub viewers will show the cover by other means. |
|
05-21-2010, 06:44 AM | #9 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Hello,
I am attaching epub here. you can see cover image at the end. Please check it and let me know if I made any mistake in it. Thanks in advance. Vipin Last edited by vipinpa; 05-25-2010 at 01:22 AM. |
05-21-2010, 11:08 AM | #10 |
The Grand Mouse 高貴的老鼠
Posts: 72,195
Karma: 308792702
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
There are lots of mistakes, but none that affect the cover image. It seems that the Calibre Viewer just decides to put any linear="no" items in the spine at the end, instead of only showing through through TOC access.
As I said - you need to test in more than the Calibre viewer. Adobe Digital Editions is good, since most people will be using one form of it or another. But test in more than one viewer if you can. You also need to run epubcheck - your .ncx file has a problem with duplicate play order numbers, and your XHTML isn't compliant. And once you have epubcheck, don't forget that it only checks technical problems with DTD compliance. Passing epubcheck doesn't mean your epub will look good, or read as you expect. I'd also suggest cutting the cover image down to just the front cover. |
05-23-2010, 11:57 PM | #11 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Hello pdurrant,
Thanks for your reply. It is not fixed yet. I am trying to fix it. Can you tell me what are the major mistakes I have made in the epub please.. Thanks, Vipin |
05-24-2010, 12:23 AM | #12 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I hope this helps. |
|
05-24-2010, 01:13 AM | #13 |
Web Programmer
Posts: 10
Karma: 10
Join Date: May 2010
Location: India
Device: Sony PRS-505
|
Hello dwanthny,
Thanks for your reply. Actually I am a beginner in epub. I have done what you explained. But I didn't get what is the issue. If you don't mind, please give me bit more explanation about it. Thanks, Vipin |
05-24-2010, 01:20 AM | #14 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
It seems this setting labels that html as the cover page and it is treated as such from then on. Now you know everything I know on the subject. |
|
05-24-2010, 03:11 AM | #15 |
The Grand Mouse 高貴的老鼠
Posts: 72,195
Karma: 308792702
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
I didn't say major. I did say:
your .ncx file has a problem with duplicate play order numbers, and your XHTML isn't compliant. regards, Paul |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto-creation of cover image on .epub to .mobi conversion | december | Calibre | 4 | 02-10-2012 05:31 PM |
Epub output - cover art issue | marie44 | Calibre | 4 | 09-27-2011 02:36 PM |
[Old Thread] Epub cover image does not display correctly | Amalthia | Calibre | 30 | 06-20-2011 11:50 AM |
Image Color issue in PDF to EPUB | simplysanthakuma | Calibre | 2 | 07-07-2010 05:28 AM |
epub conversion - cover image | Nate the great | Calibre | 15 | 09-14-2009 05:15 PM |