qgis-plugin
qgis-plugin copied to clipboard
Expression for images in tooltip is broken in QGIS 3.36.0
When adding an image preview to the tooltip as recommended in our documentation, the image does not appear in the tooltip in QGIS (see screenshot). However, the image still appears in the feature preview on the mobile app.
In order to get the image to appear in the tooltip on QGIS, the following script must be used:
<img src='file:///[%@project_folder%]/[% "photo" %]' width='250' />
However, when the script above is used and feature is opened in the mobile app, the image will not be scaled so it isn't really visible due to the size of the image.
This currently only affects QGIS 3.36.0, we've tested it on 3.34LTS and everything still works as expected.