I would like to have images displayed in my HTML widget.
Unfortunately, the initial script generated by QGIS doesn't work.
<tr>
<td>Images</td>
<td><script>document.write(expression.evaluate("\"Image\""));</script></td>
</tr>
It comes with the text string only.
I found some solution at Display photo stored as blob in GPKG but it shows a Python function instead of a front-end solution.
I need my image related to the feature, but not in the HTML display section, but in HTML widget - see Show images related to features in QGIS?
There are some solutions here but don't work in my case:
- https://stackoverflow.com/questions/29910137/how-to-document-write-within-an-image-src-string-doesnt-get-parsed
- https://stackoverflow.com/questions/22503908/html-is-img-src-scriptsome-javascript-script-allowed
- https://stackoverflow.com/questions/116967/img-src-tags-and-javascript
Is there any way to show in the HTML widget the image related to my object?
Even if I place the link to static image, the problem is the same:
<tr>
<td>Images</td>
<td><img src = "Supporting_Docs\Images\S1.jpg" width="300" height="225"
alt="Alias Name"/></td>
</tr>

