Bug 367694

Summary: Support loading palettes saved as a CSS file
Product: [Applications] krita Reporter: hokmaph
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: halla, PhiLho, seanchrnart, tamtamy.tymona
Priority: NOR    
Version: 2.9.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description hokmaph 2016-08-22 20:45:34 UTC
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
Comment 1 Halla Rempt 2016-08-22 21:13:56 UTC
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.)
Comment 2 Philippe Lhoste 2018-03-26 08:51:26 UTC
Now that Krita 4 is out, it sounds like a good candidate for a Python script. Should be easy to do, I guess.
Comment 3 Tiar 2020-04-07 13:51:09 UTC
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).
Comment 4 Sean Castillo 2023-11-07 04:40:42 UTC
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.