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 for GIMP and Inkscape
- Scribus xml
- Krita Bundle
Swatchos
This project came about from the need of open source palettes for the colour swatch cards (Swatchos) available from Basallt. 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 palette_name
Where "file_format" could be:
- gpl : GIMP / Inkscape RGB Palette
- scribus : Scribus CMYK XML Palette
- krita : Krita Resource Bundle
i.e.
- python main.py gpl input.csv palette
- will produce a rgb .gpl for use in Inkscape, GIMP and Krita
- python main.py scribus input.csv palette
- will generate a cmyk .xml for use with scribus
- python main.py krita input.csv palette
- produces a krita resource bundle that is currently not working
Where "input_csv" would be your input csv as in swatchos.csv
Where "palette_name" 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)
Krita
While I am working on the resource bundle for Krita, you can place the .gpl generated by using the gpl format into $HOME/.local/share/krita/palettes.
The current resource bundle for Krita does not load the palette correctly