Skip to content

Image imported with ImagePicker().pickImage(requestFullMetadata: false) loses EXIF orientation on some images (iOS) #120356

@mazzonem

Description

@mazzonem

Steps to Reproduce

  1. Use the image_picker library
  2. Use the pickImage function with the requestFullMetadata parameter set to false
  3. on iOS, this flag allows you to pick an image without asking for Photo Library Usage permission.
  4. The Exif orientation is not part of the image anymore

Expected results: The loaded image contains the EXIF orientation data
Actual results: The loaded image does not contain the EXIF orientation data

This is a regression since moving to Flutter 3.7.x, Is still working fine with flutter 3.3.x.
Interestingly, it seems to be a Fllutter issue rather than an image_picker library issue, image_picker didn't change version.

Code sample
Logs

Metadata

Metadata

Assignees

Labels

a: pluginsSupport for writing, building, and running plugin packagesfound in release: 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8has 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.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions