Image displaying as (?) in Apple Books
hendricius opened this issue · 4 comments
I was having an issue that sometimes some of the images in Apple Books are not properly displayed, they are just shown as a ?
.

I created a small sample repo where you can reproduce the bug: https://github.com/hendricius/apple-books-image-issue/blob/main/book.tex
It seems that the problem was my graphicspath
.
This does not work:
\graphicspath{
{./images/}
}
Changing it to the following will solve the issue:
\graphicspath{
{images/}
}
I had previously reported this on my own repo: hendricius/the-sourdough-framework#59. Just leaving this here in case someone else has the same issue.
Thanks Michal for the great work!
@hendricius ah sorry that I forgot about your request, I was really overwhelmed at that time. It is much better now.
It seems like the issue reported recently on TeX.sx: https://tex.stackexchange.com/a/683436/2891. The leading dot too caused the issue here. The problem is that web browsers and some readers support it, but others do not, so it is difficult to debug it.
Do you have any other issues with the conversion to Epub?
No worries at all @michal-h21. That seems to be the exact issue.
I am having another strange issue now since recently when trying to build the book on linux:
tex4ebook -c tex4ebook.cfg -f epub book.tex
[STATUS] tex4ebook: Conversion started
[STATUS] tex4ebook: Input file: book.tex
HTML Tidy for Linux version 5.8.0
...dir/texmf-dist/scripts/tex4ebook/tex4ebook-exec_epub.lua:295: signal
make: *** [makefile:110: build_ebook] Error 1
make: *** [bake] Error 2
It seems like zip can not be found? Have you had a similar error before? You can reproduce it by cloning https://github.com/hendricius/the-sourdough-framework/ and then running make bake
(docker) in the root folder. Or if you run make bake
in the book/
folder (without docker)
@hendricius ah, that's strange! I cannot reproduce this error on my system, but the signal
error seems really strange. Do you get the same error if you run this code with texlua
?
if assert(io.popen("zip -v","r"):close()) then
print("zip found")
else
print("zip not found")
end
I've made a change in tex4ebook-exec_epub.lua
that should hopefully fix this issue.