miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 672 forks source link

EXIF Data Loss When Picking Image from Gallery (Android) #1629

Open asiteandroid opened 1 week ago

asiteandroid commented 1 week ago

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

github-actions[bot] commented 8 hours ago

This issue is stale because it has been open for 7 days with no activity.