Asciidoc EPUB3 and local images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Asciidoc EPUB3 and local images

Victor Romero
This post was updated on .
Hello Asciidoctor users,

I've been trying to setup a project to write asciidoc that should have a HTML, PDF and EPUB3 output.

On my first checks to generate EPUB3 using asciidoctor-epub3 I've been able to get the ebook without images.

In the src/doc/asciidoc folder that does have a images folder there. I'm running :

asciidoctor-epub3 0_index.adoc

But I'm getting a file with broken images. Unzipping the epub shows that images are not included.

I'm sure I'm doing something wrong as the images I get in the HTML output have an absolute SRC, and I wondering if you can give me any hint about where to look at.

Regards
Ted
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc EPUB3 and local images

Ted
I tried downloading your source files and created the epub from your 0_index.adoc file.

It is weird; the images in your folder are missing in the epub file.

I can see that you have :imagesdir: images

I can see that you reference your images correctly
image:datamapper.png[image]

I would try adding a double-colon to make it a block image
image::datamapper.png[image]

I don't know what causes the images to be included in the epub or not? Can anyone address what is happening here?





- Ted @TedAtCIS
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc EPUB3 and local images

Victor Romero
I did try that with no luck in file :
https://raw.githubusercontent.com/vromero/mule-doc/master/src/doc/asciidoc/2_anypoint-platform-primer.adoc

image::studioembeddedserver.png[image]
image::mule-server.png[image]
image::cloud-cloudhub.png[image]
image::mulesoft-database-customapp.png[image]

Thanks for your help though!
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc EPUB3 and local images

LightGuardjp
Looks like it's a bug. If you pull the images out of the table it works fine and pulls the images into the epub zip. File a bug, please.


On Wed, Jul 30, 2014 at 10:26 AM, Victor Romero [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I did try that with no luck in file :
https://raw.githubusercontent.com/vromero/mule-doc/master/src/doc/asciidoc/2_anypoint-platform-primer.adoc

image::studioembeddedserver.png[image]
image::mule-server.png[image]
image::cloud-cloudhub.png[image]
image::mulesoft-database-customapp.png[image]

Thanks for your help though!


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoc-EPUB3-and-local-images-tp1936p1938.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc EPUB3 and local images

Victor Romero
I just saw you created it.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc EPUB3 and local images

LightGuardjp
Yep, no problem

On Wednesday, July 30, 2014, Victor Romero [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I just saw you created it.

Thanks!


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoc-EPUB3-and-local-images-tp1936p1940.html
To start a new topic under Asciidoctor :: Discussion, email <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ml-node%2Bs49171n1h37@n6.nabble.com&#39;);" target="_blank">ml-node+s49171n1h37@...
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--