Skip to content

SebaaBlamey/ChangeColorScheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Color Scheme Transformer

This Python script applies a color scheme to an image by transforming its colors to match the selected theme. The color scheme are defined in a JSON file, 'color-scheme.json', which contains multiple themes with associated color palettes. The script then maps the original image colors to the closet colors from the selected theme using a KD-Tree for efficient color matching.

How It Works

  1. The script load a set of color schemes from 'color-scheme.json' file.
  2. The user is prompted to select a theme from the available options.
  3. The selected color palette is applied to the image, changing its appearance.
  4. Enjoy ricing.

Example Usage

python main.py {your_image path}

Results

Here is an example of the original image and the three resulting images:

Original Image Nord Gruvbox Tokyo Night
Original Image Catppuccin Gruvbox Tokyo Night

Note

This scripts works better with simple images. If you put an imagen with a lot of details it may not work as expected.

License

This project is licensed under the MIT License.

Dependencies

To install the required dependencies, run the following command:

pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages