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

[Feature]: Add geolocation EXIF data to images captured with the camera #7547

Closed
2 of 3 tasks
nelsonvassalo opened this issue Jul 7, 2024 · 7 comments
Closed
2 of 3 tasks

Comments

@nelsonvassalo
Copy link

nelsonvassalo commented Jul 7, 2024

Description

Add the additional EXIF data to images captured with the camera, in the same way images from the gallery already do.

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

GPSLatitude, GPSLatitudeRef, GPSLongitude and GPSLongitudeRef should be in the EXIF data. Right now exif does not include those on iOS platform

Alternatives

No response

Additional Information

It seems it is implemented #2284 but works only on Android, not on iOS.

Example repo

Additionally, we should be able to retrieve information after capture or selection from gallery. If we are selecting an image via the prompt, there's no way of knowing whether the image was captured or selected from gallery.

@jcesarmobile
Copy link
Member

the provided repository is not accessible, can you make it public or provide the correct url?

@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Jul 8, 2024
@ionitron-bot ionitron-bot bot removed the triage label Jul 8, 2024
@nelsonvassalo
Copy link
Author

I apologize, it's public now

@Ionitron Ionitron removed the needs reply needs reply from the user label Jul 8, 2024
@jcesarmobile
Copy link
Member

I've verified that the code is correct, as you can see, the geolocation information is correctly returned when picking an image from the gallery that has geolocation information.

But when taking a new picture from the app, the native component used by the plugin doesn't capture geolocation information, so the plugin can't return it because it's not there to return.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
@nelsonvassalo

This comment was marked as abuse.

@nelsonvassalo
Copy link
Author

Excuse me, why are my comments marked as abuse? And why was the issue closed? It persists…

@ryaa
Copy link
Contributor

ryaa commented Jul 18, 2024

I've verified that the code is correct, as you can see, the geolocation information is correctly returned when picking an image from the gallery that has geolocation information.

It seems that no coordinates are returned when a photo(s) are picked on an Android device - see ionic-team/capacitor-plugins#2147

Copy link

ionitron-bot bot commented Aug 17, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants