Skip to content

dek3rr/BottleCap

Repository files navigation

Bottle Cap Mosaic Maker

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!

Conversion Progression Example

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

Usage

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

About

Convert images to bottle cap mosaics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages