Hi everyone, Introducing…
Krita: SVG → merge, save…
Usage: File/Export Vector Layers as FLAT SVG
Saves all the vector layers in your document to a single layer, FLAT, SVG.
NO, it does not currently support multiple layers in the final SVG… Yet?
Get the latest version here:
Installation: Unzip directly into your ‘pykrita’ folder
This usually found under the location specified in Settings/Configure Krita/General/Resources. On Linux for me that looks like:
/home/simon/.local/share/krita
And in there you’d find ‘pykrita’.
It’s not super important where you put it, but I place mine in the pykrita folder found in the installation directory of Krita. (File search for it)
We did it!
As of the time of this post, I hit the 1.2 version milestone of fixing several major issues. Now I believe this can be relied on for anyone who needs it.
I have tested this in Nobara (Fedora/KDE based) on Krita 5.2.9.
I believe it should also work on all other platforms.
For most people who want to make a logo and need to work non-destructively but then require a simple flat SVG output.
What it does exactly:
Finds all your vector layers, groups a copy of them, merges from top to bottom until it’s one vector layer, provides SVG save dialogue, then cleans the merged content away. That’s all.
Development wishlist:
- The Export button is not alongside the other export buttons. I am VERY open to suggestion as to how to handle this, particularly if i’m GIVEN code
But I was going to just shift it underneath the buttons on the export section. - It’s a little advanced for me, but I would love if someone added this functionality as a save as option when selecting SVG. That way the menu item would not be necessary.
- I would LOVE if we could extend this to offer a NO merge version where we can keep our layers in the final SVG. NOT sure if it’s possible with Krita.
- I VERY much need to work out how to disable UNDO history for this.
- Shortcut key?
- What else? let me know below.
I would like to thank the following Krita-Artists.org members:
Who provided important code API for the merging of layers.
I would also like to thank these members to offering their assistance, engaging and thus being a part of this addon’s success and visibility.
Big shout out to Shem Taylor who without, we would not have found a work around to save the SVG properly. https://www.youtube.com/Dodgeesoftware
Please be sure to check his channel out if you are interested in programming.
GNU licensed for opensource compatibility.
Enjoy.