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
Image Maps Prevent Display of Images in Exported e-Books #30
Comments
You can create an image map and display it if you create it directly using the html tags. Here is an image map that works: ====== Image Map ======
Here is the image: Adapted from https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_areamap |
Thanks a lot, Myron, let me try!
Stay well.
|
Dear Myron, |
I use Calibre, which runs on Windows, MacOS, and Linux. I've been using this for years: Another, just for MacOS and Windows is Sigil: I'm attaching a version of the image_map.epub that has been corrected by Sigil. It may make a difference to your ebook readers. For instance, before the Sigil corrections, the Firefox ebook extension could not read the image_map file. Now it can but it doesn't respond to mouse clicks, which means it's not up to reading image maps. A relatively new reader for Windows is: I can't speak about commercial products, Amazon etc. |
No graphic is showing with the corrected ebook inside image_map_sigil.zip. |
You'll have to forgive me for a clumsy error. The url for the image was to my local machine. The following version contains both the image and the corrected html. For the image map to work in dokuwiki, you have to use the address of the image in your html markup as seen in the above image map; code: |
Thank you, this one was displayed, though I did not see (possibly missed) any image maps. |
I don't follow. What was displayed? |
Sorry, Myron, I meant: The last version could actually been display as ebook (with contents and graphics), using any of my available e-book readers. However, the image map did not work. (All the previous versions did show an empty page, when opening the ebook.) |
I just finished installing Calibre on an Ubuntu instance and everything works -- the map image is displayed and when clicked it opens a pop-up with the name of the area clicked. Your problem is not with the epub book but with your epub readers which can't handle image maps. Many of these readers use the Readium ebook engine and Readium does not handle image maps. |
Dear Myron,
|
I am working on this. And
That is the way it already works. |
Thanks a lot, Myron, let me check it out.. |
? |
Here is what I get upon epub conversion (extracted from the ebook), after moving all graphical elements to the images namespace. The first image is without any image mapping and shows up. The second, created by the image mapping plugin, does not show any graphics, but working text links. The third occurrence, created by using tags from within DokuWiki does not produce any image, nor any links.
So, essentially, even after renaming the namespace to "images", no luck yet. |
Patience. |
No worries, Myron. I truly appreciate your kind help, and did not intend to push, but just wanted to provide any (hopefully useful?) debugging information. Have a great weekend. |
Test this using the imagemapping plugin for creating your image maps: |
Dear Myron, |
2019_september_9_10-51-08.epub.zip |
And now she works... your sample file. Great! I will try this on my own stuff asap. |
Glad to see it works. I've just uploaded a fix to the imap branch and now you may find that it works int some of your other editors. |
While the above links work on your example, there is no such luck with data created from within DokuWiki using the ImageMap plugin.
What is there to be done? |
This zipfile contains two epubs. One with only local links and one with both local and external. If there is something particular to your wiki which conflicts with the epub plugin in some way, there's noting I can do about it unless you identify the source of your problem. If the image map image is not showing up, then perhaps you haven't included it in your epub. It won't be included by the imagemapping plugin. You have to explcitly included it in your book, as is shown in the wiki file I've included, where it is accessed in the wiki document |
Greetings from Kenya,
It seems that the epub plugin does not export image maps created with the Dokuwiki imagemapping plugin. In fact, no image is displayed at all inside the e-book, just the link.
Am I missing something?
Thank you!
Chris
The text was updated successfully, but these errors were encountered: