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