QField icon indicating copy to clipboard operation
QField copied to clipboard

QField won't take photos

Open RobertM2323 opened this issue 2 years ago • 10 comments

Describe the issue

I am unable to get the QField app to take photos or upload them to the cloud.

Reproduction steps

I open the app and download the project files. I add a waypoint and click on the photo button which will allow me to take the photo without leaving the app. After taking the photo, I return to the information about the waypoint, but no photo is present. The symbol for photo still has a bar through it.

I have attempted this both by directly setting up an attachment field in the waypoint, as well as using the method with relations as per the QField Documentation, but I am still unable to get the photo to work. I have also attempted using Open Camera as an app to take my photos with but this still did not make any difference.

Desktop (please complete the following information)

  • OS: Windows
  • QGIS Version 3.22.7
  • QFieldSync Version 4.1.1

Mobile (please complete the following information)

  • Device: Samsung Galaxy S9
  • OS: Android 10
  • QField version: 3.24.2-Tisler, account name u0_a264

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: No
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
  • Problem happens with all files and projects, not only some files or projects: N/A (only 1 project)

RobertM2323 avatar Jul 05 '22 23:07 RobertM2323

Check the way your field is setup, especially its length (it might record a long path to the photo).

VxTedxV avatar Jul 06 '22 05:07 VxTedxV

Attachment Widget I have shortened the path but the photos still do not appear. You can see my widget settings in the photo above.

RobertM2323 avatar Jul 07 '22 03:07 RobertM2323

Hello,

In Integrated Document Viewer, change No content for "Image".

images

Ipickedausername avatar Jul 07 '22 07:07 Ipickedausername

Unfortunately that did not have any effect; I think that setting is for viewing the photos in QGIS itself

RobertM2323 avatar Jul 07 '22 21:07 RobertM2323

Before going further, in QGis, does this trick allows you to see images ? If not, it's not Qfield relevant.

VxTedxV avatar Jul 08 '22 12:07 VxTedxV

I tested it out and looks like that feature just allows you to view a thumbnail of the image in the attributes table when you upload the photo. But it doesn't have any effect in QField

RobertM2323 avatar Jul 09 '22 14:07 RobertM2323

The thumbnail auto-adjusts its size according to the size of the window (with "auto" width/height set). Be aware that QField stores photos taken in a DCIM folder next to the project file. With your config ("relative to project path" which is the right choice), it means your field must store DCIM/photoname.jpg and not just photoname.jpg for example. Hope it helps.

VxTedxV avatar Jul 10 '22 18:07 VxTedxV

Oh I think I may have created some confusion; while the adjustment I made does let me see photos, I was only uploading photos on my computer to see if they were visible; I am still unable to get photos from QField onto my computer.

RobertM2323 avatar Jul 10 '22 18:07 RobertM2323

Hi,

I created a project, with one layer: "PT_PHOTOGRAPHIES" and a basemap.

You can download it on the list of community project: author: jeb name of the project: Test_photos

I took a picture. I can see it appearing in the field "photo", I can save it and I can export it. When I synchronize, I can see the picture in the field "photo" on my computer. The picture is stored in the folder: C:\Users\xxxxxx\QField\cloud"name_of_the_project"\DCIM

So everything seems to work.

If you want, you can download it, maybe it can help to find the source of this issue.

Ipickedausername avatar Jul 12 '22 13:07 Ipickedausername

Hello, sorry for the delay since the last message. I'm not sure where I am supposed to go to access community projects (I'm pretty new to the software); would you mind directing me?

RobertM2323 avatar Jul 24 '22 12:07 RobertM2323

Hello, sorry for the delay since the last message. I'm not sure where I am supposed to go to access community projects (I'm pretty new to the software); would you mind directing me?

hello, did you get an update on this or fix the issue? I'm having similar problems trying to use the photo feature of QField. (Though the sample project about bees loads images, I can't seem to make one work myself)

s-moz avatar Nov 08 '22 15:11 s-moz

https://docs.qfield.org/get-started/sample-projects/ this has the sample projects if it's helpful

s-moz avatar Nov 08 '22 15:11 s-moz

Unfortunately I was not able to find a solution to this problem. The only option that I found that could potentially work as a substitute was to use geotagged photos and upload them onto a separate layer. Obviously it's not as practical as adding the photos directly as an attachment to points, but it would be one way around it

RobertM2323 avatar Nov 08 '22 16:11 RobertM2323