![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Cover image problems
I have a problem with the cover image displaying on some ebooks both in Sigil and on my Kobo.
I have a collection of books that have no cover image included so I have been downloading images from the Internet to add to them. I have resized them all to 325 x 500 @ 72dpi. I created a cover page template file which I add to the books in question along with the corresponding image file. My problem is that in some books the cover image appears perfectly in the preview pane and in some all I get is this - And this is the cover page code - Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="calibre:cover" content="true"/> <title>Cover</title> <style type="text/css" title="override_css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 460 706" preserveAspectRatio="none"><image width="460" height="706" xlink:href="cover.jpeg"/></svg> </div> </body> </html> Last edited by theducks; 11-27-2020 at 05:11 PM. Reason: removed redundent inline image |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely your cover image isn't found, because you didn't include a path in the xlink:href value.
Code:
xlink:href="cover.jpeg" Code:
xlink:href="../Images/cover.jpeg"
You also might want to right-click the cover image file in the Book Browser and make sure that there's a check mark before the Cover Image entry. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Quote:
The image has a check mark against cover image, so not that. |
||
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
That happens for one of three reasons:
1. the image file can not be found 2. the image file was never added properly to the epub by Sigil so you have an href pointing outside the book itself. 3. the image file format does not match the ext/mimetype or is unreadable |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
I have installed FlightCrew and ePubCheck. FlightCrew has no warnings regarding the cover image and ePubCheck failed to run for some reason. Still baffled. Last edited by theducks; 11-27-2020 at 05:12 PM. Reason: removes redunden inline image |
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
The name of your cover image is cover.jpg, however, the cover image xlink:href attribute references cover.jpeg.
It should work, if you change the path to: Code:
xlink:href="../Images/cover.jpg" |
![]() |
![]() |
![]() |
#8 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
I had previously tried editing the path to include ../Images but that did not work so I changed it back again. If I come across this problem again I now know what to do, thanks again for your help. |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
For future reference: please note that the folders shown in the Book Browser are only a virtual representation of file-types contained in the epub archive (starting with Sigil 1.0). The fact that an 'Images' folder appears there does not, in fact, mean that there's an 'Images' folder present in the epub's archive. There could be one, but the fact that cover.jpg appears under the virtual 'Images' folder only means that Sigil knows that cover.jpg is an image.
The tooltip, when hovering over a file, shows the actual file path within an epub's archive. You can also set the full path of all files to always show in Book Browser in Sigil's preferences. Doing so can help to reinforce the idea that Book Browser is a representation of an epub's various file-types and is not necessarily indicative of its internal folder structure. |
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes when hand creating any links, you must know the true path to the file that is the link starting point and the true path to the destination file (the link's ending point).
So either mousing over both to see their path or turning on full paths in Sigil Preferences will do that for you. But why not let Sigil handle all of that by using the Add Cover, Insert Image, Insert Link, Insert Style tools to automate that process for you. |
![]() |
![]() |
![]() |
#11 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Quote:
Thanks for everyone's help. |
||
![]() |
![]() |
![]() |
#12 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One item that might help is in the Preferences => Appearance => Main UI, select "BookBrowser should show full paths". This will show the full path which I find useful when opening an epub that I did not generate where you can find files stuffed into random directories or no directories.
|
![]() |
![]() |
![]() |
#13 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Be good to have a keyboard shortcut to toggle that setting. BR |
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
It is not something that needs to be toggled often or all all. It is more a personal preference since all information is easily available in either mode and the Sigil tools already exist to prevent the need to hand edit links at all, which can be error prone.
|
![]() |
![]() |
![]() |
#15 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I get metadata from cover image? The image is correct but all other data is wrong | mydjtl | Library Management | 1 | 12-14-2017 05:15 PM |
full page image problems with iBooks/cover problems in iTunes | iain robinson | ePub | 1 | 06-28-2013 11:10 AM |
Cover image isn't displaying as cover image | Eugene88 | Sigil | 3 | 08-15-2012 04:05 PM |
Cover image problems. | WraithTDK | Library Management | 2 | 02-24-2012 09:54 AM |
Weird cover image problems | just_jeepin | Sigil | 3 | 11-11-2009 05:32 PM |