roam-qgis / Roam

Simple data collection built using QGIS.
http://roam-docs.readthedocs.org/en/latest/
GNU General Public License v2.0
166 stars 60 forks source link

Images in Select Info are presenting as text #457

Closed terry-longmacch closed 4 years ago

terry-longmacch commented 4 years ago

When a layer has Info1 or Info2 select configured to show an image - the same configuration that worked in version 2.7 and showed the image, only shows a string in version 3.0.

Version 2.7 Version 2_7

Version 3.0 Version 3_0

kalle84 commented 4 years ago

having a similar issue.

terry-longmacch commented 4 years ago

Could have added HTML to the query, but have hard-coded a solution for fields ending with ".jpg", ".jpeg" or ".png".

HeatherHillers commented 3 years ago

@terry-longmacch

Hi, is this ticket deployed in Version 3.0.6? I am having a similar issue migrating a Roam 2.7 project to Roam 3. Although here instead of a string in the attribute list I see a broken image link The image is saved as expected in _images and shows in if I open the feature form. -Thanks!

terry-longmacch commented 3 years ago

Hi @HeatherHillers ,

I am not having this issue any more, but I have the image path hard-coded in the Info1/Info2 queries.

For example: SELECT '.._images\' || filename AS "Photo" FROM cemeteryphotos WHERE plotid = :mapkey

Hopefully that works for you. Let me know if you are still having issues.

Regards, Terry

HeatherHillers commented 3 years ago

Hi @terry-longmacch,

I will try your workaround today, thanks!

I have opened a fresh issue on this, because I was able to reproduce it from a fresh project pulled from the master. I'm tinkering with it a bit in my free time. I almost have it.

https://github.com/roam-qgis/Roam/issues/476

Thanks,

Heather