I'm trying to upload a css palette into krita but don't work Reproducible: Always Steps to Reproduce: 1. palette window -> choose palette -> import resource 2. selecting a css file made with gimp (exported palette) 3. Actual Results: nothing happens Expected Results: palette should load
Krita only loads gpl, riff, aco and act palettes. Krita has never supported loading css files as palettes -- so this isn't a bug, but a feature request. In any case, just save your palette as gpl, and you can load it in Krita. (Also, Ubuntu's 2.9.7 is very old, we're at 3.0 now.)
Now that Krita 4 is out, it sounds like a good candidate for a Python script. Should be easy to do, I guess.
It can be inside Krita's code if it's important for Krita to have it, or if someone declares to maintain it (fix bugs if some comes up in later years).
I got working on this. I have the most basic implementation working (4 RGB swatches and using the file name as the palette name), and I'll make sure it works with anything that could come up before I submit it.
Git commit 67452db8bd9d5286bca14873c16bd84fcbd804a2 by Halla Rempt, on behalf of Thomas K/BIDI. Committed on 05/07/2024 at 07:51. Pushed by rempt into branch 'master'. Implement CSS Palette support Add the possibility to import CSS palette in Krita, in the same way as the .gpl ones. Those palettes can be generated by GIMP or created by the user, but the only property considered is "color". The following color format is supported (based on their CSS syntax) : - rgb - rbga - hsl - hsla - hexadecimal The file's suffix must be ".css". If there is an error in the syntax or the color definition, errors will be raised and the palette loading aborted. M +1 -1 libs/koplugin/KisMimeDatabase.cpp M +163 -0 libs/pigment/resources/KoColorSet.cpp M +2 -1 libs/pigment/resources/KoColorSet.h M +1 -0 libs/pigment/resources/KoColorSet_p.h https://invent.kde.org/graphics/krita/-/commit/67452db8bd9d5286bca14873c16bd84fcbd804a2