What information are stored in .kra, and can there be a stripped version of .kra?

I’d like to know if it is possible to make a distributable version of .kra with only the information provided within layers. IIRC, .kra stores more than that.

A example of where this is useful is distributing game UI things, and Krita is very good for that in my experience.

Hi

I’m not sure what you mean by .kra store more than that, and which data you want to strip.

Basically, a.kra file store layers, and things like assistants, color profiles, …
And there’s some information like author, creation date, stored in 2 xml files

A kra file is a zip file.
Unzip file and took a look about content. It’ll be easier maybe to understand the question and what you want to remove.

Grum999

2 Likes

Ok, I checked. Never mind, doesn’t seem like it save unnecessary contents for my use case. Just the unused animation xml file, but it’s pretty damn small, so I’ll shrug at that.

Also, I can’t seem to share .kra file here even though this one is less than 10 MB. By any chance you’re on discord, so I can share it to you to see what to make of it?

Limit is 3.0MB I think
And kra file format is not accepted on forum yes :slight_smile:

To temporarily share a (big) file you can use service like https://filetransfer.io or https://send-anywhere.com for example

Grum999

Actually never mind. I’m closing this as it seems already small enough.

If your goal is to strip unnecessary data to reduce file size, the only thing you can do and that can reduce file size in a consequent way is to use .krz file format.

.krz is the same format than .kra, except there’s no mergedpreview.png file.
This preview can have a huge size according to the Krita’s content document (on some of my documents, could 200-300MB just for the previex file)

Grum999

4 Likes

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.