[Qgis-user] adding an image to a callout box
Adam Nielsen
a.nielsen at shikadi.net
Mon Mar 11 18:30:31 PDT 2024
> i would like to add a graphic image such as a tiff to an annotation layer
> that i can turn off/off. is there any way to paste an image into a text
> box or polygon that i have pointing to a location?
Can you set the annotation to show HTML then use an "img" tag to show
an image that's saved in your project folder? e.g.
<img src="photos/example.jpg" />
You may not be able to show TIFFs, but if you convert them to .png or
.jpg then it should work.
I haven't tried this with annotation layers but it works in map tips to
have an image appear when you hover over a feature.
A quick Google suggests annotation layers have the option to render HTML
so I would imagine it would work there too.
Cheers,
Adam.
More information about the QGIS-User
mailing list