Open image larger/full size in modal window

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

Open image larger/full size in modal window

patrix
Hi,

I am writing some technical documentation. There are two points somewhat related questions:

1) For HTML; I would like to open a modal window with the full size image when clicking on an image (like this: https://www.w3schools.com/howto/howto_css_modal_images.asp)
2) For PDF; something similar, or open the image in the default image viewer, or something like that.

I understand that for PDF, this is probably more complicated. For the HTML version this should be possible. I am converting my HTML documentation into asciidoc (asciidoctor to be precise) and in HTML I have this working beautifully.

Any ideas or pointers?
Reply | Threaded
Open this post in threaded view
|

Re: Open image larger/full size in modal window

patrix
So what I do use now, is placing a link="image location" tag inside the image brackets:

image::path/file.png[link="path/file.png"]

This opens the image nicely in the PDF, and in the HTML.
However, in the HTML a real overlay/modal image would still be nicer.
Also, I do not like the fact that I have to repeat the full URL.

Any thoughts on this?