-
Notifications
You must be signed in to change notification settings - Fork 30.4k
[image_picker] Image rotates 90 degrees on iOS 14 with "Select Photos" access #80428
Copy link
Copy link
Closed
Labels
a: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagese: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemfound in release: 2.0Found to occur in 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Metadata
Metadata
Assignees
Labels
a: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagese: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemfound in release: 2.0Found to occur in 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
The image_picker package is really struggling with iOS 14 photos under "Select Photos". There is another issue here > #77281
However, today I noticed that it will also rotate images on iOS 14 90 degrees if they have chosen Select Photos access.
So more information:
When using this package on iOS 14: On first request, when a user is prompted for photo access and chooses "Select Photos" they then get presented with their photo library where they select a photo. BUT - this was the OS selection window for which photos they are granting access to. They will then get another photo selection window to select the photo for this Image_Picker. If they select the photo that they selected from the OS for "Select Photos" access then everything will be fine. However, if they select a different photo, which they are able to do, then it will still work, it will just rotate it 90 degrees for some reason.
Anyways, seems like this wasn't really worked through for this package when iOS added the new photo permission as there is a lot of odd behavior in this path.
EDIT: additional info - Seems to be photos taken with the camera on the device. Screenshots or downloaded images don't seem to rotate, BUT once again if you change the access to All Photos, then the photos aren't rotated.