Skip to content

Fixed iOS photo GPS information #4393

Open
gabriel-bolbotina wants to merge 3 commits intomasterfrom
fix/ios-photo-geolocation
Open

Fixed iOS photo GPS information #4393
gabriel-bolbotina wants to merge 3 commits intomasterfrom
fix/ios-photo-geolocation

Conversation

@gabriel-bolbotina
Copy link
Contributor

Modified the image picker logic for gallery and camera inputs.

  • the camera logic use UIImagePickerController
  • the gallery picker now uses PHPickerViewController instead of UIImagePickerController API. This controller preserves all the EXIF metadata from photos, thus the GPS information is kept.

Added IOSGalleryPickerDelegate, a PHPickerViewControllerDelegate implementation that retrieves the original image metadata via NSItemProvider, which preserves GPS data and calls back into the Qt layer on the main thread

Tested on iOS 26 using the clone of this project

Added PHAsset handling to retrieve gps data
Got rid of deprecated API and used PHPickerViewController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant