Skip to content

MediaPicker.PickPhotosAsync does not preserve image orientation #32650

@Dreamescaper

Description

@Dreamescaper

Description

Despite setting RotateImage = true and PreserveMetaData = true, photos still have an incorrect orientation.

Steps to Reproduce

            var photoPickerOptions = new MediaPickerOptions
            {
                Title = R.SelectProfilePhoto,
                MaximumWidth = 200,
                SelectionLimit = 1,
                RotateImage = true,
                PreserveMetaData = true
            };

            var selectedPhotos = await MediaPicker.Default.PickPhotosAsync(photoPickerOptions);
            var photo = selectedPhotos.FirstOrDefault();

            if (photo == null) return;

            using var stream = await photo.OpenReadAsync();
            ...
IMG_0101.MP4

Link to public reproduction project repository

https://github.com/Dreamescaper/MauiCameraRepro

(I've uploaded repro image to the repo root)

Version with bug

10.0.10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.7

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions