Files
OpenPaletteGenerator/README.md
2026-04-09 17:56:33 +01:00

41 lines
1.5 KiB
Markdown

# Open Palette Generator
## Description
Takes a CSV of colour name, cmyk percentages, and hex codes and generates palette files in the format
Colour Name, C, M, Y, K, RGB Hex
- gpl
- scribus xml
- krita kpl (coming)
### Swatchos
This project came about from the need of open source palettes for the colour swatch cards available from [Basallt](https://basallt.com/products/swatchos). The only palette available for download is in Adobe CC (ASE) format, which there are projects that aim to convert this. Each not up to date and not easily used. So I took the the table of swatches and produced the CSV, then created this to generate the different palettes for the different software that I use.
This will be able to be used with any CSV that follows the example
## Usage & Requirements
Currently this should run on any version of python 3 or above
python main.py "file_format" "input_csv" "output_file"
Where "file_format" could be:
- gpl : GIMP RGB Palette
- scribus : Scribus CMYK XML Palette
Where "input_csv" would be your input csv as in swatchos.csv
Where "output_file" is the name of your palette, the required extension is added automatically
## Where to place the swatches
### Inkscape
Place the exported .gpl in $HOME/.config/inkscape/palettes
### GIMP
Place the exported .gpl in $HOME/.config/GIMP/$VERSION/palettes, where $VERSION is the gimp version
### Scribus
Place the outputted xml file in /usr/share/scribus/swatches (you will need to sudo or be root)