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

SVG import in Krita 4

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

SVG import in Krita 4

Fri Mar 23, 2018 10:55 am
Hej!

I am very happy fort the latest version of Krita, the number 4.0.0, bought on Microsoft Store. I am impressed by the brushes, I really like the ones I have tested.

Another thing I was interested was the SVG import. It works! At least in a basic way... If there are no gradients, it is OK. All gradient fills renders black or not at all. Flat fills renders the way they are designed. The shapes are deformed, a bit flattened, 15% or more.

http://pennstreck.blogspot.se/2018/03/svg-import-in-krita-and-affinity-photo-1.html

I am back now. ... Last design was a simple circle with a vector brush-stroke around the edge. The brushstroke did not show in Krita. The text in the circle rendered as outlines when I exported the SVG file from Affinity Designer. The text was showing as it should imported in Krita.
Below the circle I drew a line at 25 px thickness. It showed up right.
As the svg was imported it was flattened about 50%. It was easy to correct by dragging it out, but I suppose that is something to be looked after. It was also easy to ungroup the file and move the different items in the svg file.

http://pennstreck.blogspot.se/2018/03/svg-import-in-krita-and-inkscape.html

After all, the SVG import works well and is a very useful contribution to the Krita software.

(By the way: I use Affinity Designer for my vector work.) P.S. How do U include images to this forum? It would be nice to visually show some of my testings...
User avatar
Gequibren
Registered Member
Posts
11
Karma
0
OS

Re: SVG import in Krita 4

Sat Aug 11, 2018 3:23 pm
Hey !

Sorry, I came here not to answer, but to ask (I'm starting to learn vector stuff in Krita)

How do yo import SVG files in Krita ?

I tried from the menu
Layer > Import layer
But when doing it the layer that appears is a normal one, not a vector layer as in Inkscape.

I created a vector layer in Krita before importing the SVG file, but it still creates a different paint layer when I import SVG.

I have even tried to put the SVG file where there are the others by default in
C:\Program Files\Krita (x64)\share\krita\symbols

Even in the other similar folder
C:\Users\Username\AppData\Roaming\krita\symbols

But I don't see the SVG file appear in the "Vector library" panel

Looking online I find some Reddit threads where they ask the same thing in previous versions of Krita. Then a panel called "Add shape" was used to do it, but in v.4 + I think it doesn't exist, I at least don't see it.

And reading the documentation it says:
Since Krita 4.0, SVGs can be properly imported, and you can export singlevector layers via Layer ‣ Import/Export ‣ Save Vector Layer as SVG….
https://docs.krita.org/en/general_conce ... e_svg.html


So again, exporting is explained, but not how to import...

Please help, thanks in advance !
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: SVG import in Krita 4

Sat Aug 11, 2018 3:37 pm
Looks like we broke something... Loading an svg file in krita loads it as an svg layer. Import layer and drag/drop seems broken. Copy/paste from inkscape works, though.
User avatar
Gequibren
Registered Member
Posts
11
Karma
0
OS

Re: SVG import in Krita 4

Mon Aug 13, 2018 8:41 am
boudewijn wrote:Looks like we broke something... Loading an svg file in krita loads it as an svg layer. Import layer and drag/drop seems broken. Copy/paste from inkscape works, though.


Then I'll do it as you mention... loading or copy-pasting

Thank you ! :)
lensman
Registered Member
Posts
8
Karma
0

Re: SVG import in Krita 4

Mon Oct 01, 2018 2:47 am
Dragging this topic back up again because copying and pasting an vector object FROM Inkscape TO Krita does NOT work.

Pasting the object does not paste it into the current vector layer as I want, but rather it creates a NORMAL layer above it and pastes as an IMAGE.

Going the opposite way works perfectly.


So, how does one copy a vector object from Inkscape and paste it into Krita as a vector?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: SVG import in Krita 4

Mon Oct 01, 2018 7:25 am
Are you using Windows? It seems that on Windows, the clipboard creates a rendered image out of the svg and puts that first in the queue when another applications asks for the paste content.
lensman
Registered Member
Posts
8
Karma
0

Re: SVG import in Krita 4

Mon Oct 01, 2018 11:30 am
Yes, I am indeed using Windows. But, if this is a Windows specific problem how is it possible to copy from Krita and paste to Inkscape? [ Rhetorical question, you don't have to get all code-speak on me to explain ;) ] Anyway, you guys are obviously aware of it and that's good enough for me. Keep up the good work.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: SVG import in Krita 4

Mon Oct 01, 2018 11:38 am
I'm still trying to find time to actually investigate on windows and see whether we cannot access the svg instead from the clipboard.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]