View Single Post
Old 03-29-2021, 11:05 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,958
Karma: 6361444
Join Date: Nov 2009
Device: many
In case this helps, here is what I have in my epub3 opf that allows the cover thumbnail to show in Finder. Also when I add this epub to Books on my iPad, the cover shows on the Books library shelf.

In my OPF, I have named the cover image as "cover.jpg" and have the following related entries:

In the OPF metadata section I have:

<meta name="cover" content="cover.jpg"/>

Note that in the above line "cover.jpg" is identifying the "id" in the manifest for the cover image, not the path to the cover image file itself.

In the OPF manifest section I have two entries related to the cover. The first is to the xhtml file that shows the cover:

<item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml" properties="svg"/>


and the second is for the cover image file itself. Notice that the id matches what is in the metadata for cover and that the manifest "cover-image" property is set.

<item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg" properties="cover-image"/>



With these in place, macOS has no issue creating a thumbnail of the cover so that is shows in the Finder without any need for an iTunesArtwork file at all.

If I then e-mail this to my iPad and load it into Books, the same cover image is identified properly and those extra files are properly created. I did have to remove an older version of that same book from Books first, since it used an older cover which seemed to take precedence.

If your epub is an epub3, does it have these exact same pieces?
KevinH is offline   Reply With Quote