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

QField won't take photos #3053

Open
RobertM2323 opened this issue Jul 5, 2022 · 16 comments
Open

QField won't take photos #3053

RobertM2323 opened this issue Jul 5, 2022 · 16 comments

Comments

@RobertM2323
Copy link

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)
@VxTedxV
Copy link

VxTedxV commented Jul 6, 2022

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

@RobertM2323
Copy link
Author

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

@Ipickedausername
Copy link

Hello,

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

images

@RobertM2323
Copy link
Author

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

@VxTedxV
Copy link

VxTedxV commented Jul 8, 2022

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

@RobertM2323
Copy link
Author

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

@VxTedxV
Copy link

VxTedxV commented Jul 10, 2022

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.

@RobertM2323
Copy link
Author

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.

@Ipickedausername
Copy link

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.

@RobertM2323
Copy link
Author

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?

@s-moz
Copy link

s-moz commented Nov 8, 2022

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
Copy link

s-moz commented Nov 8, 2022

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

@RobertM2323
Copy link
Author

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

@nirvn
Copy link
Member

nirvn commented Feb 1, 2025

@RobertM2323 , have you been able to configure your project correctly since the last time you commented here? There's also been countless improvements I'd imagine would have fixed issues on our side.

Let us now :)

@nirvn nirvn added the feedback label Feb 1, 2025
@ian-parfitt
Copy link

Try changing camera settings while capturing field data. Default on my iPhone was a back camera. I also added a separate tab group for the photo attribute as per the bee sample and restricted size to 800 px

Copy link
Contributor

The QField project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants