jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

PickMediaOptions.PhotoSize changes sourcefile instead of just the returned file #487

Open CennoxX opened 6 years ago

CennoxX commented 6 years ago

Version Number of Plugin: v3.1.3 Device Tested On: Android Simulator Tested On: Visual Studio Emulator for Android Version of VS: 2015 Version of Xamarin: Xamarin Forms 2.5

When picking a photo with an option, I expect, that the options are only applied to the returned file, not the source file. But if I use the code stated below, the source image gets smaller too.

await CrossMedia.Current.Initialize();
var file = await CrossMedia.Current.PickPhotoAsync(new PickMediaOptions
{
    PhotoSize = PhotoSize.Small,
});
prashantvc commented 6 years ago

VS Emulators are outdated, could you try using Google emulators . share a sample code demonstrating the problem if you continue to have an issue

CennoxX commented 6 years ago

So I tested this again with my project and the sample from https://github.com/jamesmontemagno/MediaPlugin/tree/master/samples using the Visual Studio Emulator and my Android Oreo Device (Moto G2) and noticed that this only occurs, when not using the Gallery App to pick the image. So when using a file explorer (MixPlorer) to pick the image the source image will be downsized, if I use the Gallery, all is fine.