Skip to content

Conversation

@clemlatz
Copy link
Contributor

@clemlatz clemlatz commented Nov 21, 2017

iBooks needs the following meta tag:

<meta name="cover" content="image.cover.png" />

in content.opf in order to display the cover.

Fixes #153

@marijnh
Copy link
Owner

marijnh commented Nov 21, 2017

Shouldn't that point at img/cover.png instead?

@clemlatz
Copy link
Contributor Author

You're absolutely right. I fixed that.

@marijnh marijnh merged commit 1dfced6 into marijnh:master Nov 21, 2017
@marijnh
Copy link
Owner

marijnh commented Nov 21, 2017

Thanks. Merged. The epub on the website is in the process of being rebuilt.

@esparkman
Copy link

I still see the issue when downloading the ePub from the website and load it into iBooks.

@marijnh
Copy link
Owner

marijnh commented Nov 21, 2017

Is the meta tag there when you unzip the book? It should be. If it doesn't help, the problem diagnosis may have been wrong in the first place?

@esparkman
Copy link

I'll verify. One sec.

@esparkman
Copy link

esparkman commented Nov 21, 2017

Line 75:     <item id="image.cover.png" href="img/cover.png" media-type="image/png"/>

@marijnh
Copy link
Owner

marijnh commented Nov 21, 2017

Could you clarify?

@esparkman
Copy link

That is on Line 75 of the content.opf. When I manually pulled and compiled the file it worked just fine.

@clemlatz
Copy link
Contributor Author

My bad. I think I was right in the first place. Attribute name value should be the id of the image as defined in the manifest item tag and not the image path, so:

<meta name="cover" content="image.cover.png" />

was indeed correct.

@clemlatz clemlatz deleted the patch-1 branch November 22, 2017 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants