Open duzenko opened 6 years ago
Got the same problem mate.
Some more info - It looks like the image that media picker saves internally may be rotated incorrectly before it is returned from PickPhotoAsync
I view the orig image from my photo gallery (taken with ios cam in portrait orientation) in exif viewer and exif orientation is 'rotate 90 CW' and appears correct in the exif viewer preview.
I then step into MediaPickerDelegate code and get the path of the temp file that media picker creates as it does its thing - export the data container for the app (using xcode->devices), and view the image in the same exif viewer - exif data is correct (rotate 90 CW) but image is rotated to the left 90 deg - indicating it is being rotated 90 ccw when it is saved(?)
I have three particular images on my iPad that won't keep their orientation when picked. Using an online exif viewer I can see that it is marked as "Rotate 180". However the media plugin does not rotate the output picture.
Bug Information
Version Number of Plugin: 4.0.9 Device Tested On: iPad Air 2 Version of VS: 2017 15.7.2 Version of Xamarin: 2.5.1
Steps to reproduce the Behavior
Pick an attached photo IMG_0034.zip
Expected Behavior
Image orientation persists
Actual Behavior
Image orientation gets reset
Code snippet
Screenshots