Skip to content
/ themer Public

k-means pure python script for extracting a color pallet from images.

Notifications You must be signed in to change notification settings

clach04/themer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Charles Leifer's Themer

k-means pure python script for extracting a color pallet from images. For more details see https://charlesleifer.com/blog/using-python-to-generate-awesome-linux-desktop-themes/

Python 3.x and 2.x support.

pip install -r requirements.txt

Example

Linux Example

export XDG_CONFIG_HOME=$PWD/sample_config
python themer.py -n --template=$XDG_CONFIG_HOME  --config=$XDG_CONFIG_HOME/config.yaml generate my_theme sample_config/sample_colors.yaml
ls sample_config/themer/my_theme/

Windows Example

set XDG_CONFIG_HOME=%CD%\sample_config
python themer.py --template=%XDG_CONFIG_HOME% --config=%XDG_CONFIG_HOME%\config.yaml generate my_theme YOUR_IMAGE.png

python themer.py -n --template=%XDG_CONFIG_HOME% --config=%XDG_CONFIG_HOME%\config.yaml generate my_theme sample_config\sample_colors.yaml

Then check (XDG_CONFIG_HOME) %USERPROFILE%\.config\themer, specifically %USERPROFILE%\.config\themer\my_theme.

Python 3 support

Tested with:

MarkupSafe-2.1.4 jinja2-3.1.3 pillow-10.2.0 pyyaml-6.0.1

checkout https://www.deviantart.com/pobtott/art/Any-Color-You-Like-175624910 avg icon theme.

About

k-means pure python script for extracting a color pallet from images.

https://charlesleifer.com/blog/using-python-to-generate-awesome-linux-desktop-themes/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published