Image: vhalaharvi / reddit.com · The collage application arranging seven cat photos with layout controls
A collage maker searches gap-free layouts for up to ten photos
The designer used Claude to implement a Go collage engine that runs in a browser through WebAssembly, keeping photos on the page.
Credits
- Build author vhalaharvi Source ↗
Earliest dated source: Details reviewed:
The full story
This collage tool accepts up to ten photos and a canvas shape, then looks for a gap-free arrangement that makes the smallest photo as large as possible. Its designer credits Claude with writing the implementation in Go.
The browser version runs the engine through WebAssembly so photos stay on the page. The maker reports searching more than 500 million layouts for nine photos in under a second, and shares a live demo, MIT-licensed source and a command-line version.
Before and after
- Starting problem
- A need for a gap-free collage that does not leave one photo tiny.
- Reported result
- A browser and command-line collage tool, with performance reported by the maker.
Device and compatibility
- Browser with WebAssembly; Go command-line versionSource ↗
What Claude did
- Implementation of the Go layout-search engineClaude Source ↗
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.
- Reddit: I designed a collage maker that finds the best gap-free layout for any shape. Claude wrote the code
The maker's post describing the project and reported limitations.
- The project: vinodhalaharvi.github.io
Linked in the post.