Hi I’m using the command pathToKrita pathToFile --export --export-filename outputPath.png/jpg and this gets me an image. But for some reason only bitmap layers are exported, the text isn’t there. I tried many things as testing with a file with only one layer, but it didn’t work.
There is a file where the text was exported but only in jpg, it doesn’t work with my other file or for png. What could this be?
If neccesary I can upload the .kra file that works and the one who doesn’t to drive or wetransfer.
As it was said to you, the text is “hidden” in SVG-Files in a KRA-File. Such a SVG-File is a text-file describing its vectorized contents, like the textual content it holds, you have to parse these files to get your text out of them, it is written down in there in clear-text, no cryptic codes or something. Take such a file and open it in your preferred text-editor.
Can you make one of your files available? I think can try to show you how and where to find the text. You have to show for the SVG’s in subfolders of the folder layers in your KRA-Files. These folders look like “layer[here you will find a sequential numbering].shapelayer”, so:
layer1.shapelayer
layer2.shapelayer
layer3.shapelayer
…
In there are the SVG’s.
Hi! Thanks for your answer! I’m aware of how .kra works on the inside. But I don’t understand why krita can’t export it from command-line. I assumed it would be like using the file/export with the GUI but it seems it’s not that way.