androidxamarincordova-media-plugin

Media plugin Image Crop not working in android


Using media plugin , I tried the code,

var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
   AllowCropping = true
});

But nothing happening, no crop option showing when I take photo from camera.


Solution

  • If you read the Readme part of MediaPlugin, you will know that cropping is only supported on iOS and UWP.

    And you may check the reply of this Feature Request, for Android platform:

    Not possible as we launch the default Android camera and out of control from the library.