UPDATE!

Some more info.

Here's what's in the package.opf file:

    

 ...

<item id="item_cover" href="jacket/cover.png" media-type="image/png" 
properties="cover-image"/>
<item id="item_goodbye-books" href="../Images/goodbye-books.png" 
media-type="image/png"/>
<item id="item_how-email-seems-to-work" 
href="../Images/how-email-seems-to-work.png" 
media-type="image/png"/>
<item id="item_how-email-works" href="../Images/how-email-works.png" 
media-type="image/png"/>
<item id="item_how-gmail-works" href="../Images/how-gmail-works.png" 
media-type="image/png"/>

...


If I edit the package.opf file and remove the ../, that fixes things.

So, to recap, when the epub file is generated, asciidoctor-epub3 copies all 
the images to OEBPC/Images directory in the epub archive, but it does not 
update the hrefs in the package.opf to point to the locations of those 
images, rather it still uses the path to the images (a sub-directory) from 
where the book was built.

Source Asciidoc is below.

*how-email-works.txt*

...
[[HowEmailSeemsToWork,How email seems to work]]
.How email seems to work
image::{imagedir}/how-email-seems-to-work.png[How email seems to work]
...


Where {imagedir} expands to ../Image



On Friday, December 8, 2017 at 3:11:20 PM UTC-6, Shep wrote:
>
> Here's how I build my book:
>
> asciidoctor-epub3 -d book book.txt
>
>
> I pass the resulting book.epub through epubcheck and get this error:
>
> ERROR(RSC-001): book.epub/book.epub(-1,-1): File 
> 'Images/goodbye-books.png' could not be found.
>
>
> If I look "inside" the epub file using Calibre, it confirms that while the 
> image files are included in the epub archive, each image is labeled with 
> "This file is not included in the book manifest" (see attached image), and 
> the images don't display in the epub reader.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to