jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

[iOS] Image orientation not respected by PickPhotoAsync #554

Open duzenko opened 6 years ago

duzenko commented 6 years ago

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

                var picture = await CrossMedia.Current.PickPhotoAsync( new PickMediaOptions { CustomPhotoSize = 512 } );

Screenshots

untitled

hajarrashidi commented 6 years ago

Got the same problem mate.

psigeist commented 6 years ago

Some more info - It looks like the image that media picker saves internally may be rotated incorrectly before it is returned from PickPhotoAsync