|
|
#1 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,707
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Bug in marking image as the cover with ePub2.
Then I mark an image as the cover in an ePub2, I get lines like...
This one is in the metadata. <meta name="cover" content="coverimg"/> This one is in the guide. <reference type="cover" href="images/9781984818553_cover.jpg"/> The line in the guide triggers an error in the latest epubcheck. So it would be a good idea not to add it to the guide so it won't have to be removed. The error is not a valid "OPS Content Document". |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,153
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Does not replicate for me. Steps I tried:
1) Open an epub2 file in the editor 2) Right click on an image file and markit as the cover 3) There is no entry in the guide pointing to it, as expected. |
|
|
|
|
|
#3 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,707
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This scrambled eBook shows the issue. Just mark the cover image as the cover and you'll see the error in the guide.
|
|
|
|
|
|
#4 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,951
Karma: 179232776
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I checked the book. When I marked the file as the cover image, a item was added to guide section of the opf file pointing at the image and the metadata entry was also created.
Last edited by DNSB; 03-29-2026 at 06:11 PM. Reason: removed comment about alternative ePub editor |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,808
Karma: 9501034
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
When you mark the xhtml file as the Cover, then that guide entry is overwritten with the correct entry.
|
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,153
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes if there is no proper html cover marked then the image is used as a fallback.So it will be fine when you mark the html cover.
|
|
|
|
|
|
#7 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,707
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Now that I've provided proof that this is a bug, is this going to be fixed? |
|
|
|
|
|
|
#8 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,655
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#9 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,707
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#10 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,951
Karma: 179232776
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The guide contents are optional and there is no requirement to list the cover file. OTOH, there is a bit of confusion since the specification also says the guide items must have an href attribute referring to an OPS Content Document included in the manifest. This would seem to make adding a direct link to the cover image an error since an image file is not a valid XHTML/HTML/XML document.
|
|
|
|
|
|
#11 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,153
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, it's not going to be fixed. If you care about epubcheck's asinine errors mark an HTML file as the titlepage in addition to an image. If you mark only an image as the cover then calibre will put that in the guide because that actually helps the epub file work as intended with other software.
|
|
|
|
|
|
#12 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,707
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#13 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,153
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No clue. This behavior has been present for decades. I am not going to be going out there and doing a comprehensive survey of all software to find out which ones still rely on it.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems with names of image files in epub2 | philja | Sigil | 3 | 01-21-2023 12:33 PM |
| Default maximum cover image size bug/flaw | JSWolf | Calibre | 16 | 09-11-2017 01:37 AM |
| Bug: multiple "cover-image" tags | David Kudler | Sigil | 9 | 08-18-2017 01:54 PM |
| marking the cover | Oldpilot | Sigil | 8 | 09-24-2012 08:20 PM |
| Cover image bug with ePub for correct aspect | JSWolf | Conversion | 16 | 01-28-2011 04:31 PM |