Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images and fonts do not appear on Apple Books #83

Closed
AlfredLarsen opened this issue Jul 14, 2020 · 3 comments
Closed

Images and fonts do not appear on Apple Books #83

AlfredLarsen opened this issue Jul 14, 2020 · 3 comments

Comments

@AlfredLarsen
Copy link

AlfredLarsen commented Jul 14, 2020

Hello,

ePubs generated by this script work wonderfully on iBooks for Mac OS and other e-readers, but...

...the same ePub viewed through Apple's new Books app for iOS does not display the images, instead a placeholder is shown:

IMG_2042

The above is from the Alice in Wonderland ePub generated by epub-gen’s own test.js script. I've found the same issue with my own ePubs. The images display fine in iBooks on Mac OS, and other e-readers, but on Apple's Books app for iOS - only a placeholder is shown.

Also, any custom fonts you specify do not work. Again, they work perfectly elsewhere.

I've ran the script to generate an ePub version 2 and 3 - and both have the same issue. My iPhone is fully updated.

Any ideas?

@AlfredLarsen
Copy link
Author

AlfredLarsen commented Jul 14, 2020

P.S. I notice that ePubs generated with other software work fine in Apple Books. For example, I generated an .epub file with both inline images and custom fonts in Apple Pages, and it works fine in Apple Books for iOS.

I've unzipped this working epub and am looking at the contents, trying to see what the difference is, but so far I can't spot the difference. I cannot see anything that could be causing it to fail. I've even consulted Apple's official documentation at https://help.apple.com/itc/booksassetguide/en.lproj/static.html, and I can't see anything that epub-gen is doing wrong.

@AlfredLarsen
Copy link
Author

Okay, I've got hold of someone else's iPhone and it works fine on theirs. Clearly there's some issue with my device.

@AlfredLarsen
Copy link
Author

AlfredLarsen commented Jul 14, 2020

I've changed the book title by a single character and the problem is no longer happening on the Alice test book.

As for my own books, I had to delete the Apple Books app and reinstall it. Now everything works correctly.

Well that was a fun 4 hours.

Ugh.

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

No branches or pull requests

1 participant