View Single Post
Old 12-11-2020, 08:29 PM   #1
acharseth
Junior Member
acharseth began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: iPad
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!
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:
...
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 2480 3508" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="2480" height="3508" xlink:href="../Images/KubebokForsideNO-M.jpeg"/></svg>
content.opf:
Code:
...
<meta name="cover" content="KubebokForsideNO-M.jpeg"/>
...
<item id="KubebokForsideNO-M.jpeg" href="Images/KubebokForsideNO-M.jpeg" media-type="image/jpeg" properties="cover-image"/>
...
<spine toc="toc.ncx">
    <itemref idref="cover" linear="no"/>
...
<guide>
    <reference type="toc" title="Innholdsfortegnelse" href="Text/toc.xhtml"/>
    <reference type="text" title="Tittelsideinnhold" href="Text/titlePageContent.xhtml"/>
  </guide>
Please help me figure out what's wrong.

A couple of additional questions:
  • Can I use the same dc:identifier id="BookId" for the different translations of the same book?
  • Do I need to translate dc:subject?
  • Do I need to translate dc:subject?
  • If so where can I find a list of subject for various languages?
  • What is meta property="ibooks:specified-fonts"?
  • Can/should I remove <meta content="Pages Publishing iOS v1.0" name="generator"/>?
acharseth is offline   Reply With Quote