Page 1 of 1

imagemap scale issue

Posted: Fri Jun 09, 2017 12:37 am
by SD-Dave
I have been placing images in my DITA topics, and have been using the Scale parameter to control the displayed image size (WebHelp responsive transform). I added an imagemap element, so that I could put links in different areas of the image. That works, but now I have no control over the scaling of the image in the output. I see that there are 2 scale parameters available, one on the image element and one on the imagemap element. I tried both, but neither has any effect.

Any thoughts?

Example XML:
<imagemap id="imagemap_bpw_xtz_d1b" scale="200">
<image href="../Images/qsr.jpg" scale="200" id="image_elc_p1x_jz" align="center"/>
<area>
<shape>rect</shape>
<coords>1, 6, 347, 60</coords>
<xref href="c_about-QSR.dita#concept_o43_4c1_21b" format="dita">About the QSR</xref>
</area>
</imagemap>

Re: imagemap scale issue

Posted: Fri Jun 09, 2017 8:49 am
by sorin_carbunaru
Hello Dave,

This is a bug in the publishing engine that oXygen uses for creating the output, DITA-OT (see https://github.com/dita-ot/dita-ot/issues/2234). I also added an issue on our side (WH-1423, for reference purposes). Maybe we can fix this problem on our side sooner.

One option that you have now is to scale the images before creating the image maps using MS Paint, Photoshop and so on.

Best regards,
Sorin Carbunaru
oXygen XML