ImageCropper.Forms.Fix.v2
2.1.0
dotnet add package ImageCropper.Forms.Fix.v2 --version 2.1.0
NuGet\Install-Package ImageCropper.Forms.Fix.v2 -Version 2.1.0
<PackageReference Include="ImageCropper.Forms.Fix.v2" Version="2.1.0" />
<PackageVersion Include="ImageCropper.Forms.Fix.v2" Version="2.1.0" />
<PackageReference Include="ImageCropper.Forms.Fix.v2" />
paket add ImageCropper.Forms.Fix.v2 --version 2.1.0
#r "nuget: ImageCropper.Forms.Fix.v2, 2.1.0"
#:package ImageCropper.Forms.Fix.v2@2.1.0
#addin nuget:?package=ImageCropper.Forms.Fix.v2&version=2.1.0
#tool nuget:?package=ImageCropper.Forms.Fix.v2&version=2.1.0
ImageCropper.Forms
Bind_TOCropViewController .NET MAUI plugin to crop and rotate photos.
Supports Android and iOS.
- Android library from : https://github.com/ArthurHub/Android-Image-Cropper migrar a https://github.com/CanHub/Android-Image-Cropper
- iOS library from : https://github.com/TimOliver/TOCropViewController
Features
- Cropping image.
- Rotating image.
- Aspect ratio.
- Circle/Rectangle shape.
Screen-Shots
Android
<img src="ScreenShots/Android_Rectangle.gif" alt="Crop/Rotate image(Rectangle/Android)"/> <img src="ScreenShots/Android_Circle.gif" alt="Crop/Rotate image(Circle/Android)"/>
iOS
<img src="ScreenShots/iOS_Rectangle.gif" alt="Crop/Rotate image(Rectangle/iOS)"/> <img src="ScreenShots/iOS_Circle.gif" alt="Crop/Rotate image(Circle/iOS)" />
Setup
- Install the nuget package in portable and all platform specific projects.
- This plugin uses the MediaPlugin. Be sure to complete the full setup this plugin. Please fully read through the MediaPlugin description.
Android
Add the following to your AndroidManifest.xml inside the <application> tags:
<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat"/>
In MainActivity.cs file:
Stormlion.ImageCropper.Droid.Platform.Init();
global::Xamarin.Forms.Forms.Init(this, bundle);
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
Stormlion.ImageCropper.Droid.Platform.OnActivityResult(requestCode, resultCode, data);
}
iOS
In AppDelegate.cs file:
Stormlion.ImageCropper.iOS.Platform.Init();
Usage
Show ImageCropper page.
new ImageCropper()
{
Success = (imageFile) =>
{
Device.BeginInvokeOnMainThread(() =>
{
imageView.Source = ImageSource.FromFile(imageFile);
});
}
}.Show(this);
Show it with additional parameters.
new ImageCropper()
{
PageTitle = "Test Title",
AspectRatioX = 1,
AspectRatioY = 1,
CropShape = ImageCropper.CropShapeType.Oval,
SelectSourceTitle = "Select source",
TakePhotoTitle = "Take Photo",
PhotoLibraryTitle = "Photo Library",
CancelButtonTitle = "Cancel",
Success = (imageFile) =>
{
Device.BeginInvokeOnMainThread(() =>
{
imageView.Source = ImageSource.FromFile(imageFile);
});
}
}.Show(this);
Show it with a image
new ImageCropper()
{
Success = (imageFile) =>
{
Device.BeginInvokeOnMainThread(() =>
{
imageView.Source = ImageSource.FromFile(imageFile);
});
}
}.Show(this, imageFileName);
Properties
- PageTitle
- AspectRatioX
- AspectRatioY
- CropShape
- Initial image can be set in Show function.
Contributions
Contributions are welcome!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.30)
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.30)
- TR.Maui.Droid.ImageCropper (>= 1.1.0)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.30)
- TR.Maui.iOS.TOCropView (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 111 | 1/29/2026 |
| 2.0.10 | 373 | 6/18/2025 |
| 2.0.9 | 445 | 8/29/2024 |
| 2.0.8 | 193 | 8/28/2024 |
| 2.0.7 | 199 | 8/28/2024 |
| 2.0.6 | 187 | 8/28/2024 |
| 2.0.5 | 195 | 8/28/2024 |
| 2.0.4 | 208 | 8/27/2024 |
| 2.0.3 | 200 | 8/27/2024 |
| 2.0.2 | 190 | 8/27/2024 |
| 2.0.1 | 236 | 8/22/2024 |
| 2.0.0 | 201 | 8/20/2024 |
| 1.1.11 | 412 | 6/20/2024 |
| 1.1.10 | 355 | 4/25/2024 |
| 1.1.9 | 214 | 4/25/2024 |
| 1.1.8 | 186 | 4/25/2024 |
| 1.1.7 | 1,936 | 7/18/2023 |
| 1.1.6 | 3,922 | 11/14/2022 |
| 1.1.5 | 17,785 | 11/30/2021 |
| 1.1.4 | 1,253 | 11/29/2021 |