Automatically create custom mosaics from your collection of bottle caps
Just provide some framing details and an image
Works for tabletop designs or framed wall pieces!
Generated output info:
Alignment: staggered
Length: 48 inches
Width: 45 inches
Columns: 31
Rows: 42
X_padding: 60.0 mm
Y_padding: 7.23 mm
Total Caps: 1281
Weight: 6.21 lbs (2.82 kg)
Actual Height: 47.4 inches
Actual Width: 40.3 inches
Currently based on Python 3.10
Install dependencies
pip install -r requirements.txt
Customize config.ini
IMAGE_NAME = shield.png
# Image will fit to minimum axis and pad appropriately, preserving scale
FRAME_WIDTH_INCHES = 45
FRAME_HEIGHT_INCHES = 48
# Add some distance from the edge of the frame
FRAME_MARGIN_INCHES = 0
# Integer space between each cap
CAP_BUFFER_MM = 3
# staggered or grid
ALIGNMENT = staggered
Run
python -m main