jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

[Media] iOS: Portrait photo appears as Landscape (stretched to fill landscape) when using PhotoSize.Small #306

Closed CliffCawley closed 8 years ago

CliffCawley commented 8 years ago

This is a

Which plugin does this impact:

Version Number of Plugin: 2.4.0-beta2 Device Tested On: iPhone 6s Simulator Tested On:

Expected Behavior

Portrait photo to appear as portrait photo

Actual Behavior

Portrait photo appears to be resized to be landscape (not rotated) so image is stretched horizontally

Steps to reproduce the Behavior

Take a photo using PhotoSize.Small (Possibly others also don't work)

MediaFile file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions {
                Directory = "Media",
                Name = "MyFilename.jpg",
                PhotoSize = PhotoSize.Small
            });
            if (file != null)
            {
                // Load into an image control and you'll see the image is stretched horizontally.
            }
jamesmontemagno commented 8 years ago

This issue was moved to jamesmontemagno/MediaPlugin#7