![]() |
"Error while parsing file 'Multiple occurrences of the 'cover-image' property "
1 Attachment(s)
I wonder if some kind stranger can help me figure this out.
I did a epub validation check here:http://validator.idpf.org/ And got these errors: Code:
Type File Line Position MessageCode:
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>I attached the whole content.opf, but here are some parts that may help solve the problem. This is the start of the content.opf file: Code:
<?xml version="1.0" encoding="utf-8"?>Code:
<item id="an11.983-991" href="Text/an11.983-991.xhtml" media-type="application/xhtml+xml"/>Code:
<itemref idref="an11.502-981"/> |
Did you use some other program to create this EPUB (InDesign->EPUB, Word->EPUB, [...])?
Or did you try to zip this manually? Or did you use Sigil/Calibre? Something like this shouldn't occur normally... * * * Looks like these are the two issues: 1. The book is expecting you to have a file guide.xhtml, but it isn't in the EPUB. Maybe whatever tool you used to create the EPUB forgot to create this file. Looks like it may have been the name of your HTML Table of Contents (did you accidentally delete it?). 2. It looks like your cover file is cover.png, so you should be able to delete this extra line: Code:
<item id="cover_png" href="Images/cover.png" media-type="image/png" properties="cover-image"/> |
Thank you so much for your message.
Quote:
The file I posted was from a later version that I worked on in Sigil. At one point in the process I used the epub2 to epub3 export plugin. I went back to the original file and found this... Code:
<item id="cover_png" properties="cover-image" href="images/cover.png" media-type="image/png"/>The validator in Sigil had never had any issue before or after converting it to epub3. In fact the only reason I am hopping down this rabbit hole is that the cover isn't showing up when the book is uploaded to google books/play. But for now I'm just trying to get it to validate so I can rule that out. Thanks again! I still need to investigate point 1 in your very helpful message. |
Quote:
Open the EPUB in Sigil: 1. Delete the cover.xhtml + cover.png files. This should clean up the content.opf and remove any crappy/broken references to those files. 2. Add the cover.png back into the EPUB, then Tools > Add Cover. This should create a clean cover.xhtml file, and also assign the correct Cover metadata to the proper image. Quote:
The actual true EPUB validator you'll have to use is always epubcheck (it's the one that stores use). |
Looking at your content.opf, it looks as if almost every page in the original document is showing in the epub a separate file. Weird and wonderful...
|
Quote:
|
Quote:
Code:
<manifest>Yay! This is the only thing in the .opf: Code:
<item id="cover.png" href="Images/cover.png" media-type="image/png" properties="cover-image"/>Code:
<meta content="cover.png" name="cover" />Thanks everyone! |
Quote:
The Well-Formed Check (F7) in Sigil checks that there is no malformed xhtml (all tags properly closed, no improper nesting). Nothing more. So it's not surprising at all that Sigil itself wouldn't catch a well-formed OPF file with an out of spec (EPUB spec) entry. |
1 Attachment(s)
Quote:
https://www.mobileread.com/forums/at...1&d=1539903103 Could it just say "results"? If it has to be pointed out so often, it might be good to have a message in the results reminding people. In any case, thank you for the reminder. :2thumbsup |
BTW, now when I upload the book to google books the cover displays perfectly.
Thanks again for everyone's help. |
Quote:
|
Quote:
|
| All times are GMT -4. The time now is 10:54 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.