KEMBAR78
Return correctly rotated image from MediaPicker · Issue #29083 · dotnet/maui · GitHub
Skip to content

Return correctly rotated image from MediaPicker #29083

@jfversluis

Description

@jfversluis

Allows to control whether to automatically rotate the picked image based on the attached EXIF/metadata of the image. Note: this will have a performance impact.

I would propose to add a new property on the MediaPickerOptions object which is a simple boolean: RotateImage, with a default value of false given the performance impact.

public class MediaPickerOptions
{
    /// <summary>
    /// Gets or sets whether to rotate the returned image according to received EXIF orientation.
    /// Default value is <see langword="true"/>.
    /// </summary>
    public bool RotateImage { get; set; } = true;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions