XDev.Maui.ManualCrop 0.0.1-alpha006

This is a prerelease version of XDev.Maui.ManualCrop.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package XDev.Maui.ManualCrop --version 0.0.1-alpha006                
NuGet\Install-Package XDev.Maui.ManualCrop -Version 0.0.1-alpha006                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XDev.Maui.ManualCrop" Version="0.0.1-alpha006" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XDev.Maui.ManualCrop --version 0.0.1-alpha006                
#r "nuget: XDev.Maui.ManualCrop, 0.0.1-alpha006"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XDev.Maui.ManualCrop as a Cake Addin
#addin nuget:?package=XDev.Maui.ManualCrop&version=0.0.1-alpha006&prerelease

// Install XDev.Maui.ManualCrop as a Cake Tool
#tool nuget:?package=XDev.Maui.ManualCrop&version=0.0.1-alpha006&prerelease                

Maui.ManualCropApp

Contributions are welcome!

This is a very rough working draft for a portable image cropper control for Maui. Source: https://xdevapps.visualstudio.com/_git/XDev.Maui.ManualCrop

Reference code: https://github.com/dotnet/maui-samples/blob/main/8.0/SkiaSharp/PhotoPuzzle/PhotoPuzzle/Pages/CropPhotoPage.xaml.cs

MS provided sample above is refactored into a lib for use in any Maui app.

If the common image cropping libs out there that only support Android/iOS with lots of native dependencies work for you, then you can still use them, but this lib is smaller/lighter and less complicated to maintain and consume.

Screen-Shots

Crop image (Rectangle)

  • More options coming soon, submit contributions!

Supported platforms

All Maui platforms

* Android
* iOS
* Windows
* Mac

some possible useful refs https://github.com/mono/SkiaSharp/issues/804 https://github.com/HeikkiDev/XFManualCropControl/blob/master/XFManualCropApp/XFManualCropApp/Controls/ManualCropView.cs

How to test iOS:

  • use iOS sim (easiest, use ctrl-click to test pinch/gestures)
  • on an iphone: update info.plist file in test app using your own wildcard or other dev-provisioning profile:
<key>CFBundleIdentifier</key>
<string>com.[your-provisioning-profile-here].maui.manualcropapp</string>
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst18.0 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.0.1-alpha007 0 1/30/2025
0.0.1-alpha006 11 1/30/2025
0.0.1-alpha005 12 1/30/2025
0.0.1-alpha004 7 1/29/2025
0.0.1-alpha003 32 1/28/2025
0.0.1-alpha002 27 1/27/2025

initial release