Skip to content

[image_picker] Image imported from Google Photos is missing Exif data #74615

Open
@arashbi

Description

@arashbi

Using image_picker plugin, when I am selecting an image from Google Photo, the exif metadata is incomplete

final pickedFile = await picker.getImage(source: widget.imageSource); var r = await readExifFromFile(File(pickedFile.path)); debugPrint(r.toString());

Prints something like
{Image Software: Google, Image ExifOffset: 46, EXIF ExifVersion: 0220, EXIF UserComment:, EXIF ColorSpace: sRGB, Interoperability InteroperabilityIndex: R98, Interoperability InteroperabilityVersion: [48, 49, 48, 48], EXIF InteroperabilityOffset: 356}
GPS information, as well as the date, for example, are missing from the exif metadata.

The image has exif data as I see it in the Google Photo application

~/source λ flutter doctor ✘ 130
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.6 19G2021 darwin-x64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions