Image Cropper allow user to crop, rotate pictures taken from camera or gallery.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Xamarians.CropImage

Cross platform library to rotate and crop picture taken from camera or gallery

First install package from nuget using following command -

Install-Package Xamarians.CropImage

You can integrate crop tools in Xamarin Form application using following code:

Shared Code -

Crop Image:-

using Xamarians.CropImage;

...

var cropResult = await CropImageService.Instance.CropImage(filePath, CropRatioType.None);

Android - in MainActivity file write below code -

 Xamarians.CropImage.Droid.CropImageServiceAndroid.Initialize(this);

iOS - in AppDelegate file write below code -

 Xamarians.CropImage.iOS.CropImageServiceIOS.Initialize();

In ios currently we are having a known bug,to fix this add image from this url to your project and then run -

  https://github.com/Xamarians/Xamarians.CropImage/blob/master/Xamarians.CropImage.iOS/Resources/rotate_button.png