Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 802 Bytes

readme.md

File metadata and controls

35 lines (24 loc) · 802 Bytes

image2map

This project converts an input image into a brawl map. The resulting image is saved to an output file.

Features

  • Load input images and resize them.
  • Load tile images from a specified directory.
  • Calculate the average color of each tile image.
  • Convert the input image to a mosaic using the closest matching tiles based on color.
  • Save the converted mosaic image.
  • Optionally, print the mosaic image data as JSON.

Installation

  1. Clone the repository:

    git clone https://github.com/ostia27/image2map
    cd image2map
  2. Install the required Python packages:

    pip install -r requirements.txt

Usage

To run the script, use the following command:

python main.py <input_image> -o <output_image> -s <size>