QField
QField copied to clipboard
QField won't take photos
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)
Check the way your field is setup, especially its length (it might record a long path to the photo).
I have shortened the path but the photos still do not appear. You can see my widget settings in the photo above.
Hello,
In Integrated Document Viewer, change No content for "Image".
Unfortunately that did not have any effect; I think that setting is for viewing the photos in QGIS itself
Before going further, in QGis, does this trick allows you to see images ? If not, it's not Qfield relevant.
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
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.
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.
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.
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, 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)
https://docs.qfield.org/get-started/sample-projects/ this has the sample projects if it's helpful
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