Bug report #6585

<img> does not work in html map tips?

Added by Giovanni Manghi about 10 years ago. Updated almost 10 years ago.

Assignee:Nathan Woodrow
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:15776


Just tested the tag IMG in html map tips, both using an hardcoded url or an attribute, but the image does not show. Tested on master/linux. Anyone confirms?


#1 Updated by Nathan Woodrow about 10 years ago

Can you post the html you have used?

#2 Updated by Giovanni Manghi about 10 years ago

Nathan Woodrow wrote:

Can you post the html you have used?


<h1>[% "entidade" ]</h1>
"area_ha" %]</p>
<img src="http://www.faunalia.pt/sites/all/themes/titan/images/logo_corp.png">

#3 Updated by Rui Pedro Henriques about 10 years ago

I've tried Giovanni's code and the image also doesn't show. However it works on local images:
With the code (for the same image):
<img src="/var/www/pin.png" />
<img src="http://localhost/pin.png" />

it works for the first but not for the second.

#4 Updated by Nathan Woodrow almost 10 years ago

  • Status changed from Open to Closed

Closed for now as Qt richtext, a subset of HTML which is used for the map tips, doesn't support non-local images.

Also available in: Atom PDF