Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression for images in tooltip is broken in QGIS 3.36.0 #576

Open
raherin opened this issue Mar 5, 2024 · 0 comments
Open

Expression for images in tooltip is broken in QGIS 3.36.0 #576

raherin opened this issue Mar 5, 2024 · 0 comments

Comments

@raherin
Copy link

raherin commented Mar 5, 2024

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.

Screenshot 2024-03-05 100832

Screenshot 2024-03-05 101227

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.

Screenshot_20240305_104914

This currently only affects QGIS 3.36.0, we've tested it on 3.34LTS and everything still works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant