Beercap Library
📦 Building Your Library
Add manually: Upload individual beercap photos. Colors are auto-extracted from the center.
Scan multiple: Photograph many caps at once on a contrasting surface. The scanner auto-detects and groups duplicates.
💡 More color variety = better mosaics!
No beercaps added yet.
Click "Add Beercap" to start building your library.
Target Image
🖼️ Choose Your Image
Upload the image you want to recreate as a beercap mosaic.
The app calculates the optimal grid size based on your available caps and the image's aspect ratio.
💡 ~500 caps creates recognizable images. High contrast images work best!
Click or drag image here
Supports JPG, PNG, GIF, WebP
📐 Grid Layouts
Square: Traditional grid pattern, easier to build.
Hexagonal: Offset rows create a more natural, tightly-packed honeycomb look.
🧠 The Algorithm
Uses the Hungarian Algorithm for global optimization — not just picking the best cap for each spot, but finding the best overall arrangement.
This means a cell might get a slightly worse match so that another cell can get a much better one, improving total quality.
⚡ Performance Status
The indicator below shows your active computation engine:
- 🎮 GPU Accelerated — Blazing Fast! Massively parallel WebGPU compute shaders on your GPU.
- 🚀 WASM X threads — Fast. Multi-threaded WebAssembly using all your CPU cores.
- ⚡ WASM (single-threaded) — WebAssembly single-threaded CPU.
- 🐢 JavaScript Fallback — Slowest. Pure CPU JavaScript fallback.