Trimm is a lightweight desktop tool for processing scanned photos.
It focuses on cleaning up scanbed images and extracting usable photos quickly and locally.
Built with C#, WPF, and Emgu CV (OpenCV).
Automatically detects and crops a single photo from a scanbed image by removing excess whitespace.

Detects and corrects rotated or tilted images to improve alignment.

Identifies and extracts multiple photos from a single scanned page.

- Drag & drop multiple images or folders
- Process everything in one go
- Outputs saved with clean naming conventions
- Input and output previews
- Thumbnail-based layout for quick verification
- C# / .NET
- WPF (Desktop UI)
- Emgu CV (OpenCV wrapper for .NET)
- .NET 8 or later
- Windows OS (WPF)
- Clone the repository:
git clone https://github.com/justastudenttryingtolearn/trimm.git-
Open the solution in your IDE of choice
-
Set platform to:
x64 -
Build and run
- Launch the app
- Drag and drop images into the window
- Select a processing mode:
- Single Crop
- Auto Rotate
- Multi Extract
- Click Process
- View results in the output panel
Processed images are saved locally with modified filenames:
original.jpg → original_out.png
Multi-extract mode outputs multiple files:
scan.jpg → scan_0.png, scan_1.png, scan_2.png
- Best results with clear scanbed images
- Complex backgrounds or shadows may affect detection
- Multi-photo extraction is a complex problem to solve, this was a best effort feature incase people need it.
- Improved contour detection and noise filtering (as needed)
- Metadata tagging and organization
- Face recognition for automatic tagging
- UI improvements and performance optimizations
Contributions are welcome.
Feel free to open issues or submit pull requests.
This project is licensed under the GNU GPL v3.
You are free to use, modify, and distribute this software, but any derivative work must also be open source under the same license.
This project is intended to be:
- Fully local (no cloud processing)
- Lightweight
- Open source
This project is licensed under the GNU GPL v3.
You are free to use, modify, and distribute this software, but any derivative work must also be open source under the same license.
I made this app to solve a problem I was having and couldn't find an accesible free solution to. So I'm not expecting any income from it.
No pressure — just appreciated.