Skip to content

Control MediaPicker image compression #29080

@jfversluis

Description

@jfversluis

Allow to specify a compression value for the picked image (we won't do video for this right now). With this the developer will be able to reduce the size of the resulting picked media file.

I think it would make most sense to have a property like CompressionQuality on the MediaPickerOptions object. The API would largely be the same as MediaPlugin:

public class MediaPickerOptions
{
   /// <summary>
   /// Gets or sets the compression quality to use, 0 is the maximum compression (worst quality), and 100 minimum compression (best quality). Default value is 100.
   /// </summary>
   public int CompressionQuality { get; set; } = 100;
}

The same would apply to MediaPickerCaptureOptions for capturing media, although this could also be split out into a separate task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions