Can an <img be supported as a thumbnail, linked to the original?

0 votes
asked Nov 28 in Bug by boshka (2,940 points)
edited Nov 28 by boshka

I want a thumbnail be the link to the original image. And, it looks, it can be easily supported by fixing the following defect.

So, this works:

http://www.plantuml.com/plantuml/uml/hO_Vge906CJlzoa-l5_rUCf08kmvn8l5lbRB_SFkM47qxctv2btDZvbXODe85R2OMGpEU6VPWh8F7ZDIaRv4J_4ImZemXKcF87TUWuQwRWHyR8fYCafp7iS5u13XXckUEgijRpp0XO8VolYPPKHIMTMblSjDLTUx_stvbr-yflraTFFJoKFVYvRjALry0m00

Now I want the image that is within the anchor be scaled down. However, if i do {scale=0.3}, this breaks due to the scaling added to the thumbnail url:

http://www.plantuml.com/plantuml/uml/hO_TYeCm58JlynG7xnDTtNL1Tejz3l4YfAVHrloGSsmBuhlNrbVerNpC30FJ4kl4ivk42Iu6ZvuXU-4n0qtm9bZ4AeGFZ916Ep24ynuqq7K3SwGcpqUdBIeQPcPCnC5SrTRPRNb3mo7b-D0kJYY9DvLbNVYx_2xh-hVwARxK9Lhu6vrjFZgvaD4J_XUgMWzzBrhqf-tj4m00

So, in the construction:

[[origURL{tooltip} <img:thnURL{scale=xxx}>]]

1. {} should be parsed as a tooltip for the 1st instance of {}

2. {} should be parsed as scale for the 2nd instance of {}

Currently Plantuml code takes the tooltip between first { and the last }.

Can this be fixed please?

1 Answer

0 votes
answered Nov 29 by plantuml (208,860 points)
Thanks for the feedback!

This issue should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you.
commented Nov 29 by boshka (2,940 points)
edited Nov 29 by boshka

Many thanks! That works!

a side question: can I define target=_blank (_parent, _top, _self), so that I could control the anchor target attribute?

Say: [[origURL{target=_blank;tooltip} <img:thnURL{scale=xxx}>]]

...