Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trimm

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).


✨ Features

🖼️ Single Crop

Automatically detects and crops a single photo from a scanbed image by removing excess whitespace. 06d6d413-cf81-4b8b-ae35-e5fcf9ef2a82

🔄 Auto Rotate

Detects and corrects rotated or tilted images to improve alignment. 109b31ef-c70c-4bba-a6b5-1c25dbc92272

🧩 Multi-Photo Extract

Identifies and extracts multiple photos from a single scanned page. c1c42f8e-318c-4779-a5db-5593b421a0d7

📂 Batch Processing

  • Drag & drop multiple images or folders
  • Process everything in one go
  • Outputs saved with clean naming conventions

👀 Visual Preview

  • Input and output previews
  • Thumbnail-based layout for quick verification

🛠️ Tech Stack

  • C# / .NET
  • WPF (Desktop UI)
  • Emgu CV (OpenCV wrapper for .NET)

🚀 Getting Started

Prerequisites

  • .NET 8 or later
  • Windows OS (WPF)

Setup

  1. Clone the repository:
git clone https://github.com/justastudenttryingtolearn/trimm.git
  1. Open the solution in your IDE of choice

  2. Set platform to:
    x64

  3. Build and run


🧪 Usage

  1. Launch the app
  2. Drag and drop images into the window
  3. Select a processing mode:
    • Single Crop
    • Auto Rotate
    • Multi Extract
  4. Click Process
  5. View results in the output panel

📁 Output

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


⚠️ Limitations

  • 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.

🔮 Roadmap

  • Improved contour detection and noise filtering (as needed)
  • Metadata tagging and organization
  • Face recognition for automatic tagging
  • UI improvements and performance optimizations

🤝 Contributing

Contributions are welcome.
Feel free to open issues or submit pull requests.


License

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.

💡 Notes

This project is intended to be:

  • Fully local (no cloud processing)
  • Lightweight
  • Open source

License

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.

☕ Support

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.

About

I made Trimm in a fit of frustration yesterday after struggling to crop photos for the past few weeks. It covers a very specific use case, but I'm sure it will be helpful to others scanning in photos from old albums.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages