Open VladislavAntonyuk opened 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I'm currently working on a legacy app that previously utilized the MediaPlugin library, which allowed for customization of photo quality through options like PhotoSize. In particular, we used the following code:
var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
PhotoSize = PhotoSize.Medium
});
With the transition to .NET MAUI, we've started using MediaPicker.Default.CapturePhotoAsync(). However, we encountered an issue on iPhone where the lack of photo quality customization is problematic. Specifically, our business rules impose a maximum file size of 5MB for uploaded photos. Without the ability to set the photo size or quality directly through MediaPicker, it becomes challenging to ensure compliance with these rules.
Description
Since https://github.com/jamesmontemagno/MediaPlugin is deprecated there is no way to customize the camera for MediaPicker. For example, choose the default camera.
Public API Changes
Add CameraOptions to the CapturePhotoAsync and CaptureVideoAsync CameraOptions class can be copied from https://github.com/jamesmontemagno/MediaPlugin/blob/b82ad94f60c1e60d84a3ed90a4771b0ef0ea1d32/src/Media.Plugin/Shared/MediaStoreOptions.cs
Intended Use-Case
I would like to have a way to customize the camera for my app