Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2026, 04:21 PM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,670
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".
JSWolf is offline   Reply With Quote
Old 03-27-2026, 09:01 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,142
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.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 03:46 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,670
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
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.
This scrambled eBook shows the issue. Just mark the cover image as the cover and you'll see the error in the guide.
Attached Files
File Type: epub Jack Reacher 29 - In Too Deep - Lee Child.epub (677.6 KB, 3 views)
JSWolf is offline   Reply With Quote
Old Yesterday, 06:05 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 50,931
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-03-29 150339.png
Views:	7
Size:	104.7 KB
ID:	222195   Click image for larger version

Name:	Screenshot 2026-03-29 150400.png
Views:	6
Size:	113.9 KB
ID:	222196  

Last edited by DNSB; Yesterday at 06:11 PM. Reason: removed comment about alternative ePub editor
DNSB is offline   Reply With Quote
Old Yesterday, 06:17 PM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,807
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.
Karellen is offline   Reply With Quote
Old Yesterday, 11:14 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,142
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.
kovidgoyal is offline   Reply With Quote
Old Today, 08:33 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,670
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
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.
You don't mark the HTML file that displays the cover as the cover. You mark just the cover image as the cover.

Now that I've provided proof that this is a bug, is this going to be fixed?
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:56 AM.


MobileRead.com is a privately owned, operated and funded community.