7ab67906382b7e7bbcb2987fb371a69a81444ae1
collage-images
Description
This project generates a character mosaic image by combining small images into a larger image based on a text mask.
Prerequisites
- Python 3.8 or higher
- Install dependencies using
pip install Pillow
Setup Virtual Environment
To resolve potential Pillow version issues:
python -m venv venv
Activate Virtual Environment
./venv/Scripts/activate
Run
python main.py
Configuration Edit the conf.py file to customize the following parameters:
- TARGET_TEXT: The text to be displayed in the mosaic.
- SMALL_IMAGES_DIR: Directory containing small images.
- OUTPUT_PATH: Path to save the generated mosaic image.
- OUTPUT_SIZE: Size of the output image (width, height).
- SMALL_IMG_SIZE: Size of each small image (width, height).
- FONT_PATH: Path to the font file (optional).
- FONT_SIZE: Font size for the text.
Description
Languages
Python
100%