-
Notifications
You must be signed in to change notification settings - Fork 720
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
EXIF Data Loss When Picking Image from Gallery (Android) #1629
Comments
This issue is stale because it has been open for 7 days with no activity. |
Do you have any updates on this? |
This issue is stale because it has been open for 7 days with no activity. |
Hello, Are there any updates on this? We are still waiting for a response. |
I have tested packages file_picker and image_picker with exif and the Exif data was removed from all picked images. In one example, the image size in Gallery is 1.93MB vs 341K for the file returned by image_picker. The max width and height were not specified so it should have returned the original size according to its documentation. When I used file_picker, all images were compressed as well. I know the code is working since I used image_picker to pick from the camera and the file returned had complete Exif data except I did not see location details. The file was not compressed. My question is who is compressing the image? |
Update from my previous post after testing further:
Further:
Another option I'm considering is to use SAF_Util which can pick files and returns the full path, then use SAF_Stream to cache or read them. If just viewing images, this might be the most efficient as I don't think they are cached. However, permissions might be an issue. |
We are experiencing the same issue. It seems that when we switch to type |
This issue is stale because it has been open for 7 days with no activity. |
Description:
When selecting an image from the gallery using the file_picker package version 8.1.4 on Android, the EXIF metadata (e.g., orientation, timestamp, location data) is lost in the returned image file. This issue appears to occur only on Android devices.
Platform Android
Steps to Reproduce:
Pick an image from the gallery on an Android device.
Check the EXIF data of the selected image before and after picking it.
The EXIF metadata (such as orientation, timestamp, and location) is lost after selection.
Code:
FilePickerResult? result = await FilePicker.platform.pickFiles(type: FileType.image, allowMultiple: true, compressionQuality: 0)
Expected Behavior: The EXIF data should remain intact after selecting the image from the gallery.
Actual Behavior: EXIF data is lost or stripped from the image
Ref Link: https://developer.android.com/training/data-storage/shared/media#location-info-photos
The text was updated successfully, but these errors were encountered: