-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Control MediaPicker image compression #29080
Copy link
Copy link
Closed
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-essentials-mediapickers/triagedIssue has been reviewedIssue has been reviewed
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoarea-essentials-mediapickers/triagedIssue has been reviewedIssue has been reviewed