Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
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
Old 12-11-2020, 09:46 PM   #2
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
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?
Ripplinger is offline   Reply With Quote
Advert
Old 12-11-2020, 10:49 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
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.
KevinH is offline   Reply With Quote
Old 12-12-2020, 05:39 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
- 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
KevinH is offline   Reply With Quote
Old 12-13-2020, 12:05 PM   #5
acharseth
Junior Member
acharseth began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: iPad
Quote:
Originally Posted by KevinH View Post
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.
I have attached the full content.opf.xml.
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.
Attached Files
File Type: xml content.opf.xml (9.4 KB, 210 views)
acharseth is offline   Reply With Quote
Advert
Old 12-13-2020, 01:41 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,726
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by acharseth View Post
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.
Did you change the BookID value in each .opf file so that each book has a different id?

Code:
<dc:identifier id="BookId">3A0DFC72-6F1C-4DBE-8C30-F6FB0D11B4A4</dc:identifier>
AFAIK, Apple Books uses the BookId value to select the cover image.
(You'll also need to change the id in the toc.ncx file.)

Last edited by Doitsu; 12-13-2020 at 04:26 PM.
Doitsu is offline   Reply With Quote
Old 12-13-2020, 03:35 PM   #7
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Is the semantics attribute 'cover image' applied to the new cover picture file?
exaltedwombat is offline   Reply With Quote
Old 12-13-2020, 04:10 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
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:
Originally Posted by acharseth View Post
I have attached the full content.opf.xml.
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.
KevinH is offline   Reply With Quote
Old 12-13-2020, 07:49 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
I did not know that. That makes sense as that value should always be unique! Good suggestion!

Quote:
Originally Posted by Doitsu View Post
Did you change the BookID value in each .opf file so that each book has a different id?

AFAIK, Apple Books uses the BookId value to select the cover image.
(You'll also need to change the id in the toc.ncx file.)
KevinH is offline   Reply With Quote
Old 12-16-2020, 07:22 PM   #10
acharseth
Junior Member
acharseth began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: iPad
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.
acharseth is offline   Reply With Quote
Old 12-17-2020, 09:21 AM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by acharseth View Post
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.
Apple's Books Reader (f/k/a iBooks) has serious caching issues, of that I am absolutely certain.

Hitch
Hitch is offline   Reply With Quote
Old 12-17-2020, 09:25 AM   #12
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,347
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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.
Turtle91 is offline   Reply With Quote
Old 12-17-2020, 09:31 AM   #13
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
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:
Originally Posted by Turtle91 View Post
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.
KevinH is offline   Reply With Quote
Old 12-17-2020, 10:32 AM   #14
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Turtle91 View Post
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.
FWIW, we remove the file (book) entirely (delete it) from iBooks and reload it (the book). That's the best way we've found, vis: least time-consuming and least brain-damaging.

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub cover image does not display correctly jokapo Calibre 7 02-26-2012 07:13 AM
Cannot get thumbnail cover image to display Derek R Sigil 6 02-13-2012 06:52 AM
IPad2 does not display cover image of epub sharkbc Apple Devices 4 06-24-2011 07:21 PM
[Old Thread] Epub cover image does not display correctly Amalthia Calibre 30 06-20-2011 11:50 AM
Cover Image Display JoeD OpenInkpot 9 05-05-2009 12:42 AM


All times are GMT -4. The time now is 02:08 AM.


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