The borders are just to represent the actual images tested with. (click to zoom)
git clone https://github.com/Ritiek/auto-image-cropper
cd auto-image-cropper
cargo build --release
cd target/release
./auto-image-cropper
This tool was re-written in Python to compare with Rust just for fun.
[table]
Python struggles to find the optimal coordinates but is quick (quicker than Rust) when saving the cropped image back to disk. Rust really outperforms while finding the optimal coordinates.
Found a bug/ have an idea? Feel free to open your ticket in the issues section.
Even better, send a pull request. :)
The MIT License