[image_picker] image_picker: ^1.0.7 image rotation issue in IOS
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. get the image from library/gallery
2. select and show it
3. not all but some images are rotated to anticlockwise left side 90 degrees in IOS devices
### Expected results
The image must be same as it is placed in the gallery.
### Actual results
Image rotated automatically in IOS when choosing from library/gallery using ImagePicker().pickImage(ImageSource.gallery).
### Code sample
ImagePicker().pickImage(source: ImageSource.gallery).then((value) async {
if (value != null) {
List imageBytes = File(value.path).readAsBytesSync();
String _base64Image = base64Encode(imageBytes);
}
}).onError((err, stackTrace) {
debugPrint(err.toString());
});
### Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
### Logs
Logs
```console
[Paste your logs here]
```
### Flutter Doctor output
Flutter (Channel stable, 3.16.7, on Microsoft Windows [Version 10.0.19044.3086], locale en-US)
• Flutter version 3.16.7 on channel stable at D:\dev\projects\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ef1af02aea (3 months ago), 2024-01-11 15:19:26 -0600
• Engine revision 4a585b7929
• Dart version 3.2.4
• DevTools version 2.28.5
Contributor guide
Assessment
This issue has not been assessed yet.