![]() |
Cover image problems
1 Attachment(s)
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"?> |
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. |
Quote:
Quote:
Quote:
|
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 |
Quote:
Please post a screenshot of the Book Browser window that shows the location of cover.jpeg. |
1 Attachment(s)
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. |
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" |
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. |
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. |
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. |
Quote:
Quote:
Thanks for everyone's help. |
2 Attachment(s)
Quote:
|
Quote:
Be good to have a keyboard shortcut to toggle that setting. BR |
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.
|
Quote:
|
| All times are GMT -4. The time now is 10:34 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.