Image Cropper
Perfect your composition!
Crop and trim images with precision and smart detection.
About This Plugin
The Image Cropper plugin delivers precise and intelligent image cropping capabilities for .NET applications. Beyond simple rectangular crops, this plugin offers automatic content detection, face-aware cropping, aspect ratio presets, and edge detection for perfect composition. Essential for image editing applications, automated content processing, thumbnail generation, and any scenario requiring intelligent image trimming and composition adjustment.
.NET Prerequisites
- Microsoft Windows or a compatible OS with .NET Core
- Development environment: Visual Studio Code or Microsoft Visual Studio
How to Use
Reference Imagise Image Cropper
Add the Imagise.ImageCropper NuGet package to your .NET solution and include the required using statements in your source code.
Set License Keys
Configure licensing with your credentials using the License class to enable all cropping features including smart detection capabilities.
Create Cropper Instance
Initialize an ImageCropper object and load your source image from a file path, stream, or existing image object for processing.
Configure Crop Options
Define crop region (manual coordinates or automatic detection), aspect ratio constraints, alignment preferences, and content-awareness settings.
Process Image Crop
Execute the crop operation with your specified parameters. For automatic cropping, the plugin analyzes image content to determine optimal crop boundaries.
Save Cropped Result
Export the cropped image to your desired output location with optional format conversion and quality settings for the final result.
Key Features
Smart Content Detection
Automatically detect and crop to important content regions using edge detection, contrast analysis, and composition rules for optimal results.
Face-Aware Cropping
Integrated face detection ensures portraits remain properly framed when automatically cropping or changing aspect ratios, keeping subjects centered.
Aspect Ratio Presets
Built-in presets for common aspect ratios (1:1, 4:3, 16:9, 3:2) and social media formats (Instagram, Facebook, Twitter) with one-click application.
Automatic Border Removal
Intelligently detect and remove unwanted borders, letterboxing, and padding from images while preserving important content areas.
Frequently Asked Questions
How does automatic cropping work?
The automatic cropping analyzes image content using edge detection, contrast, color distribution, and composition rules. For portraits, it also uses face detection to ensure subjects remain properly framed.
Can I crop to specific aspect ratios?
Yes, you can specify any aspect ratio and the cropper will find the optimal region that matches. It includes presets for common ratios and social media formats, or you can define custom ratios.
Does it support batch cropping?
Absolutely. You can crop multiple images with consistent settings, making it perfect for processing photo batches, creating uniform thumbnails, or preparing images for specific platforms.
Ready to Get Started?
This plugin is currently under development and will be available soon.