Bookshelf | Reports | Community | KDP Select

Home » Amazon KDP Support » Ask the Community » Formatting

Thread: kindlegen warnings: problem with book cover


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

Permlink Replies: 5 - Pages: 1 - Last Post: Nov 11, 2017 3:45 AM Last Post By: William Thompson
Jens Troeger

Posts: 4
Registered: 06/27/15
kindlegen warnings: problem with book cover
Posted: Nov 9, 2017 1:30 PM
Click to report abuse...   Click to reply to this thread Reply
Hi,

I'm converting a validated EPUB3 file to MOBI, and I am trying to make sense of these two warning:

Warning(prcgen):W14018: Cover invalid and was not built with the book : mobi-HpJdXZ/OEBPS/cover.xhtml
Warning(prcgen):W14012: media file format not supported mobi-HpJdXZ/OEBPS/cover.xhtml

The cover.xhtml file has nearly no content:

<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en-US" xml:lang="en-US">
<head>
<title>Cover</title>
<link type="text/css" rel="stylesheet" href="css/chapter.css" />
</head>
<body id="cover" epub:type="chapter">
<figure class="center portrait" id="fig-cover-image">
<image src="images/cover-image.jpeg" alt="" id="img-cover-image"/>
</figure>
</body>
</html>

(Pretend that the <image> element is a proper img but this "markup" removes the line if I use img.)

What am I missing here?

Thanks!

Edited by: Jens Troeger on Nov 9, 2017 2:52 PM
William Thompson

Posts: 1,034
Registered: 07/06/14
Re: kindlegen warnings: problem with book cover
Posted: Nov 9, 2017 3:58 PM   in response to: Jens Troeger in response to: Jens Troeger
Click to report abuse...   Click to reply to this thread Reply
Try removing the <figure></figure> tags and just use the <img> tag on its own like this:

<img alt="MyImage" id="cover" src="Image_URL" />

Why not try my free Sigil plugins now available on MobileRead?

OpenDocHTMLImport - converts ODT HTML(Writer) docs directly to epub.

GoogleZipImport - converts Google Doc HTML directly to epub format.

NormalizeScrivEpub - reformats, finishes-off and normalizes Scrivener epubs.

You can download all these free plugins from The Sigil Plugin Index on the MR Forum

Jens Troeger

Posts: 4
Registered: 06/27/15
Re: kindlegen warnings: problem with book cover
Posted: Nov 10, 2017 10:55 AM   in response to: William Thompson in response to: William Thompson
Click to report abuse...   Click to reply to this thread Reply
Thank you for the suggestion, William.

I have tried the two following alternatives, neither of which silenced the warning:

<di v class="center portrait" id="div-cover-image">
<im g src="images/cover-image.jpeg" alt="" id="img-cover-image"/>
</di v>

and just plain

<im g src="images/cover-image.jpeg" alt="" id="img-cover-image"/>

Any other suggestions as to what may be going on here?
Cheers!
Donna St Felix

Posts: 5,438
Registered: 09/18/13
Re: kindlegen warnings: problem with book cover
Posted: Nov 10, 2017 11:14 AM   in response to: Jens Troeger in response to: Jens Troeger
Click to report abuse...   Click to reply to this thread Reply
Reading the above, I sure am glad I just upload a Word.doc and a JPEG for digital books and all is alright.
writerbn

Posts: 5,235
Registered: 05/12/12
Re: kindlegen warnings: problem with book cover
Posted: Nov 10, 2017 12:01 PM   in response to: Donna St Felix in response to: Donna St Felix
Click to report abuse...   Click to reply to this thread Reply
Donna St Felix wrote:
Reading the above, I sure am glad I just upload a Word.doc and a JPEG for digital books and all is alright.

I don't use Word, but I've never had these problems :)

However:
1. I don't include a cover in the ePub file.
2. I don't bother with converting to mobi; it's completely unnecessary.
William Thompson

Posts: 1,034
Registered: 07/06/14
Re: kindlegen warnings: problem with book cover
Posted: Nov 11, 2017 3:45 AM   in response to: Jens Troeger in response to: Jens Troeger
Click to report abuse...   Click to reply to this thread Reply
Well you are formatting in Epub 3 and I'm not so well up on that format.

But here's something you could try. The error from your kindlegen conversion showed "media file format not supported ". Your original cover was in jpeg format. So why not try converting the cover image to "png" format using a graphics program like irfanview then insert it back into your epub and try converting it again with kindlegen.... :-)

Why not try my free Sigil plugins now available on MobileRead?

CustomCleanerPlus - an epub-specific custom cleaner for both html docs and epubs

ConvertAbs2RelCSSValues - converts all cms, mms, inch, point and pica values to relative 'em' values in the epub css.

AddKindleMediaQueries - Optimally dual-formats all epub image entries both for KF7 devices(in pixels) and KF8 devices(as a %)

You can download all these free plugins from The Sigil Plugin Index on the MR Forum

Legend
Helpful Answer
Correct Answer

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