Bookshelf | Reports | Community | KDP Select

Home » Amazon KDP Support » Ask the Community » Formatting

Thread: Cover image problems


This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 7 - Pages: 1 - Last Post: Jun 22, 2012 5:03 PM Last Post By: man2010
hamadm3

Posts: 4
Registered: 06/21/12
Cover image problems
Posted: Jun 21, 2012 6:09 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hello,

I’m having a bit of trouble with the cover for my book and I’m really hoping someone can help me.

First, a sincere and upfront thanks to anyone who can give me a hand! Thank you!

I’ll start out by admitting that I must be missing some very basic understanding here. I have lots of experience programming in html and css, but this situation has really got me stumped.

I’ve been coding my book up in Sigil and, using the Kindle previewer to convert to mobi and then opening the resulting file in Kindle for PC to get an idea of what it looks like. But, no matter what I do, my cover image doesn’t show up as a thumbnail in my Kindle for PC library.

I believe the content.opf is coded up correctly. I’ve stared at it for hours and can see no problem:

<meta content="0.5.3" name="Sigil version" />
<meta content="cover.jpg" name="cover" />
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Styles/style.css" id="style.css" media-type="text/css" />
<item href="Text/content.xhtml" id="content.xhtml" media-type="application/xhtml+xml" />
<item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml" />
<item href="Text/toc.xhtml" id="toc.xhtml" media-type="application/xhtml+xml" />
<item href="Text/title.xhtml" id="title.xhtml" media-type="application/xhtml+xml" />
<item href="Text/copy.xhtml" id="copy.xhtml" media-type="application/xhtml+xml" />
<item href="Text/dedication.xhtml" id="dedication.xhtml" media-type="application/xhtml+xml" />
<item href="Images/betterphotography.jpg" id="betterphotography.jpg" media-type="image/jpeg" />
<item href="Images/camera2.jpg" id="camera2.jpg" media-type="image/jpeg" />
<item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg" />
</manifest>
<spine toc="ncx">
<itemref idref="cover.xhtml" />
<itemref idref="title.xhtml" />
<itemref idref="copy.xhtml" />
<itemref idref="dedication.xhtml" />
<itemref idref="toc.xhtml" />
<itemref idref="content.xhtml" />
</spine>
<guide>
<reference href="Text/cover.xhtml" title="Cover" type="cover" />
<reference href="Text/title.xhtml" title="Title Page" type="title-page" />
<reference href="Text/copy.xhtml" title="Copyright Page" type="copyright-page" />
<reference href="Text/dedication.xhtml" title="Dedication" type="dedication" />
<reference href="Text/toc.xhtml" title="Table Of Contents" type="toc" />
<reference href="Text/content.xhtml" title="Text" type="text" />
</guide>
</package>

And, as another way to troubleshoot, I took another epub file that I know works (when I convert it to mobi and then look at it in Kindle for PC, the cover image shows up as a thumbnail in the library view), copied it to another name (using the ‘Save as’ function in Sigil) and replaced the original cover image with my cover image (same filename). So, the filenames for the two cover images are exactly the same, but the original image file has been replaced with my cover image. I didn’t touch anything else in the epub. But, when I convert this edited epub to mobi and then view in Kindle for PC, the thumbnail that shows up is the original image! How can that be? The original image doesn’t exist anywhere in the new epub file. (BTW, the new cover image shows up if I view the epub in Calibre.)

Ugh! I’m so frustrated!

Does anyone have any thoughts on what I’m doing wrong here?

Again, thanks in advance for the help!

Mary
man2010

Posts: 1,897
Registered: 01/01/10
Re: Cover image problems
Posted: Jun 21, 2012 6:57 AM   in response to: hamadm3 in response to: hamadm3
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

There are bugs in Sigil and in Kindle Previewer, if you combine the two, you may get into a lot of trouble ;-)

Your OPF file does not have the author name and book title, this may be causing the mess in Kindle for PC. Your manifest and guide sections contain too many unnecessary items.

I would suggest a simpler approach to building your ebook:

Put all the files mentioned in your manifest section (including your "Text" and "Images" folders) in the same folder with a short file path something like C:\mybook\

Use kindlegen or Kindle Previewer to build your ebook using the following OPF file as input (also put this file in the above folder):

<?xml version="1.0" encoding="utf-8"?>

<package unique-identifier="uid">

<metadata>
<dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Title>Better Photography</dc:Title>
<dc:Language>en-us</dc:Language>
<dc:Creator>Mary</dc:Creator>
</dc-metadata>
<x-metadata>
<EmbeddedCover>Images/cover.jpg</EmbeddedCover>
</x-metadata>
</metadata>

<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/content.xhtml" id="content.xhtml" media-type="application/xhtml+xml" />
<item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml" />
<item href="Text/toc.xhtml" id="toc" media-type="application/xhtml+xml" />
<item href="Text/title.xhtml" id="title.xhtml" media-type="application/xhtml+xml" />
<item href="Text/copy.xhtml" id="copy.xhtml" media-type="application/xhtml+xml" />
<item href="Text/dedication.xhtml" id="dedication.xhtml" media-type="application/xhtml+xml" />
</manifest>

<spine toc="ncx">
<itemref idref="cover.xhtml" />
<itemref idref="title.xhtml" />
<itemref idref="copy.xhtml" />
<itemref idref="dedication.xhtml" />
<itemref idref="toc" />
<itemref idref="content.xhtml" />
</spine>

<guide>
<reference href="Text/toc.xhtml" title="Table Of Contents" type="toc" />
<reference href="Text/content.xhtml" title="Beginning" type="text" />
</guide>

</package>

P.S. It looks like you are also trying to insert an HTML cover into your ebook. I would delete the cover.xhtml items from the manifest and spine.
hamadm3

Posts: 4
Registered: 06/21/12
Re: Cover image problems
Posted: Jun 21, 2012 10:56 AM   in response to: man2010 in response to: man2010
 
Click to report abuse...   Click to reply to this thread Reply
Hi!

First, let me say that you are a genius! You are my hero...!

I made the coding changes that you suggested and it worked! Very excited, but then...

BUT, and I know that you are going to think that I a bit off here, as soon as I change the author name from 'Mary', it no longer works! Seriously, I'm not joking! And, I was very careful in my typing!

So, I changed the name to my full name and it didn't work. I changed it to a number of other names, thinking that there may be a limit to the number of characters I can use. None of those worked either. I changed the name back to 'Mary' and it worked again. How weird is that? And, I tried it both using the Kindle Previewer and Kindlegen (using only the opf file)

Here are the names that I tried, in order:
<dc:Creator>Mary</dc:Creator> ---->Works! Yeah!
<dc:Creator>Mary Kenkel</dc:Creator>---->doesn't work!
<dc:Creator>Kenkel</dc:Creator>---->doesn't work!
<dc:Creator>Lucy</dc:Creator>---->doesn't work!
<dc:Creator>Tim</dc:Creator>---->doesn't work!
<dc:Creator>Mary</dc:Creator> ---->Works again!

BTW, even when it works, I still get the following warning at conversion:

Warning(prcgen):W14016: Cover not specified

Do you have any other thoughts?

Also, can I ask what the P.S. from your previous reply meant? YOu said that it looked like I'm also trying to insert an HTML cover into your ebook. By this, you mean a separate page in the book for my cover? Yes, I am doing that. Aren't we supposed to? You suggest that I remove it from the manifest and spine. Can I ask why?

Thank you again!

Mary
hamadm3

Posts: 4
Registered: 06/21/12
Re: Cover image problems
Posted: Jun 21, 2012 11:42 AM   in response to: hamadm3 in response to: hamadm3
 
Click to report abuse...   Click to reply to this thread Reply
Hi!

I think I have it worked out!

The following coding is working with no 'Cover not specified' warning: I am very excited - I've been mulling this whole issue for a couple of days now:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:59</dc:identifier>
<dc:title>The Digital Photography Gear Guide</dc:title>
<dc:creator opf:role="aut">Mary Kenkel</dc:creator>
<dc:publisher>Mutz Media Publishing</dc:publisher>
<dc:language>en</dc:language>
<meta content="Images/cover.jpg" name="cover" />
</metadata>

<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="Text/content.xhtml" id="content.xhtml" media-type="application/xhtml+xml"/>
<item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml"/>
<item href="Text/toc.xhtml" id="toc" media-type="application/xhtml+xml"/>
<item href="Text/title.xhtml" id="title.xhtml" media-type="application/xhtml+xml"/>
<item href="Text/copy.xhtml" id="copy.xhtml" media-type="application/xhtml+xml"/>
<item href="Text/dedication.xhtml" id="dedication.xhtml" media-type="application/xhtml+xml"/>
<item href="Images/cover.jpg" id="Images/cover.jpg" media-type="image/jpeg" />
</manifest>

<spine toc="ncx">
<itemref idref="cover.xhtml"/>
<itemref idref="title.xhtml"/>
<itemref idref="copy.xhtml"/>
<itemref idref="dedication.xhtml"/>
<itemref idref="toc"/>
<itemref idref="content.xhtml"/>
</spine>

<guide>
<reference href="Text/toc.xhtml" title="Table Of Contents" type="toc"/>
<reference href="Text/content.xhtml" title="Beginning" type="text"/>
</guide>

</package>

Part of the problem seems to be that I was using initials (and therefore periods) in my author name. I don't understand why, but taking that out, along with your other suggestions seemed to do the trick. Thank you again so much!

BTW, I've moved to editing in Oxygen Author because Sigil was adding and/or changing my coding when I saved the file. Very annoying.

But I'm still puzzed by the P.S. in your original reply to my question. Can you explain that to me?

Thanks again!

Mary

man2010

Posts: 1,897
Registered: 01/01/10
Re: Cover image problems
Posted: Jun 21, 2012 1:27 PM   in response to: hamadm3 in response to: hamadm3
 
Click to report abuse...   Click to reply to this thread Reply
Hiya,

glad that it worked finally and thanks for the compliment. If I am not mistaken, the author should be listed in metadata as follows: Kenkel, Mary

It is strange that the <EmbeddedCover> tag did not work. It always works for me in all versions of KindleGen. But your coding for cover.jpg is correct too.

In my P.S. I meant that you are going to insert a second cover into your book. This is unnecessary. The .xhtml file for the cover will not give you a native cover, I mean this second cover won't work as a full-screen image on Kindle devices, it will have margins all around. I would delete <item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml"/> from the manifest and <itemref idref="cover.xhtml"/> from the spine.

P.P.S. If you want to have a full-screen cover on most Kindles I would recommend that your cover.jpg file be 600 x 800 pixels. Also upload the same image in the KDP section "upload your book cover" (ignore Amazon's product image guidelines).
If you are using KindleGen 2.4, your cover image won't work as a full-screen cover in Kindle for PC and possibly on the Kindle Fire (according to Kindle Previewer). If you use KindleGen 1.2 instead, then you will have a full-screen cover in all Kindle reading apps and on all Kindle devices. (You can find KG1.2 easily on the Web.)
man2010

Posts: 1,897
Registered: 01/01/10
Re: Cover image problems
Posted: Jun 21, 2012 8:03 PM   in response to: hamadm3 in response to: hamadm3
 
Click to report abuse...   Click to reply to this thread Reply
Your name changes in the OPF file most likely did not work because you forgot to delete your ebook from Kindle for PC before opening a new version of the book in Kindle for PC.
hamadm3

Posts: 4
Registered: 06/21/12
Re: Cover image problems
Posted: Jun 22, 2012 6:38 AM   in response to: man2010 in response to: man2010
 
Click to report abuse...   Click to reply to this thread Reply
Thank you so much for all of your help! You are my hero!

Thanks again!

Mary
man2010

Posts: 1,897
Registered: 01/01/10
Re: Cover image problems
Posted: Jun 22, 2012 5:03 PM   in response to: hamadm3 in response to: hamadm3
 
Click to report abuse...   Click to reply to this thread Reply
you're welcome :-)
Legend
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums