#64 · Primary category: Computer Vision

caire

computer-vision content-aware-resize content-aware-scaling edge-detection face-detection golang image-processing image-resize machine-learning seam-carving

Content aware image resize library

Project last updated:05/02/25

GitHub Stars

10.5K

Forks

387

Contributors

15

License

MIT

Why we included this project

Caire is a Go library that resizes images without stretching or cropping. It builds an energy map from edge detection, then removes the least noticeable seams of pixels, which keeps foreground subjects like faces intact while compressing the background. That makes it a sensible choice for automated preprocessing, thumbnail generation, or banner reformatting where the important content matters more than uniform scaling. It works both as an embedded Go package and as a command-line tool, with one algorithm core and a small dependency footprint, so integration stays simple. The README walks through the seam-carving process in enough detail that you can tell whether the behavior suits your workloads before committing.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category