This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kpp file format

Tags: None
(comma "," separated)
User avatar
vascobasque
Registered Member
Posts
72
Karma
0
OS

kpp file format

Tue Jul 14, 2015 3:45 pm
Hi, i am actually rewriting an old article about kritas brush fileformat. I would like to know if the .kpp is some kind of compressed fileformat. Is there anyway to decompress or decompile it? Or any other source of information telling me more about how the kpp is defined?


slangkamp
KDE Developer
Posts
607
Karma
4

Re: kpp file format  Topic is solved

Tue Jul 14, 2015 4:10 pm
It's a PNG file with embedded xml in the text section.
User avatar
vascobasque
Registered Member
Posts
72
Karma
0
OS

Re: kpp file format

Tue Jul 14, 2015 4:27 pm
I see that helped me. Just found out that i can read it with imagemagick with

identify -verbose brush.kpp

Cool, thx for the quick answer :)


User avatar
vascobasque
Registered Member
Posts
72
Karma
0
OS

Re: kpp file format

Tue Jul 14, 2015 5:22 pm
Although my question is answered i found something that is a little bit strange. Not sure if it is a bug or by design.

After taking a close look at some of my brushpresets, to see how patterns are saved (base64 encoded?), i realized that patterns are saved to many of my presets, that do not use a pattern. After some further testing it seems that patterns are saved with the brush when the strength setting is enabled even when pattern isn't checked.

For the brush i have tested the resulting filesize with pattern is about 900kb while without pattern it is 13kb. Probably that makes no big difference performance-wise, but i thought mentioning it here can't hurt that much :)


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: kpp file format

Tue Jul 14, 2015 7:17 pm
Hm... I thought I had fixed that for the latest releases, need to check the changelog since when exactly...
User avatar
vascobasque
Registered Member
Posts
72
Karma
0
OS

Re: kpp file format

Wed Jul 15, 2015 4:00 am
boudewijn wrote:Hm... I thought I had fixed that for the latest releases, need to check the changelog since when exactly...


Oh yes - my fault. I only checked it oneway with older presets..., saving new ones doesn't include the pattern.




Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]