![]() |
Cover image does not display after replace
Hi!
I am writing a booklet and started using Apple Pages as editor. I was not able to create a good eBook with this so I installed Sigil, cleaned up the mess Pages created and now have a working book in english which I would like to publish. Before I do this I would also like to have it translated to my native language, Norwegian so I have started on the translation. I then also had to create a new cover image. I added this to the image folder in Sigil, deleted the old one and used the Add Cover function in Sigil to replace the cover image. The new cover image displays fine inside Sigil and in the freda reader on my laptop. After importing it to my iPad it does not display. I only get the title without any image. I have checked the following: The name and URL looks correct in: - cover.xhtml - content.opf The cover image displays fine when previewing cover.xhtml in Sigil. The image file is located in the image directory. If I revert back to the English cover it displays fine on my iPad. If I then change to the Norwegian cover again and keep the English cover image in the image folder then the English cover image is displayed on iPad, even if all references are to the Norwegian cover! :blink: If I then delete the English cover image from the image folder then no cover image is displayed on the iPad. I have checked the width and hight parameters and they are correct. Some more info on the cover image part of these files: cover.xhtml: Code:
...Code:
...A couple of additional questions:
|
One thought about the image... are you certain there isn't an oddball character in the name of actual Norwegian image, such as æ ø å ö or anything similar that you're not including in the filename in the cover or opf files?
|
The cover image itself is not typically part of the spine. The cover.xhtml file that includes the cover should be in the spine. And typically the cover.xhtml is not set to linear="no" in the spine as that means some readers will skip it.
So try changing the first spine entry to point at the cover.xhtml and remove the linear="no" from it. You did not provide the full manifest so I do not know the id used by cover.xhtml entry to tell you what to replace the "cover" idref in the spine with. |
- The main dc:identifier should be changed as a translation is a different book.
- Update the dc:language metadata to your new language code - all other metadata that is language dependent should be translated as well - feel free to remove any generator or other metadata |
1 Attachment(s)
Quote:
metadata cover is pointing to the image file while manifest id="cover" points to cover.xhtml. This setup is the same for the english and norwegian version so it seems to me that this should not be the issue but please tell me how it should be setup. |
Quote:
Code:
<dc:identifier id="BookId">3A0DFC72-6F1C-4DBE-8C30-F6FB0D11B4A4</dc:identifier>(You'll also need to change the id in the toc.ncx file.) |
Is the semantics attribute 'cover image' applied to the new cover picture file?
|
Did you try removing 'linear="no"' on the spine idref "cover" entry? Did that change anything for your reader?
Also linear="yes" is the default and is never needed. So you can safely remove 'linear="yes"' from all of the other spine entries. Quote:
|
I did not know that. That makes sense as that value should always be unique! Good suggestion!
Quote:
|
It turns out that the problem is in the Apple Books reader. Looks like it does not handle any changes to the cover image. I am guessing it is caching something which makes conflicts. Deleting the app and reinstalling fixed it.
|
Quote:
Hitch |
Anyway of refreshing/deleting the cache without having to reinstall the app? I'm not asking for me...I don't use apple Books... but might be nice for future thread readers if there was a way that someone knew of.
|
If what Doitsu says is right about using the bookid as the key to the cache for cover images (and that makes good sense to me), then never reusing an old bookid for a different book is probably the best way around this.
Quote:
|
Quote:
Hitch |
| All times are GMT -4. The time now is 10:20 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.