Skip to content

ostia27/image2map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

Releases

No releases published

Packages

No packages published

Languages