Problem importing Plain SVG vector

I have geometric shapes created in Inkscape (like four, five and six pointed stars, for example) and I saw this video tutorial teaching how to export them to Krita:

Well, the shapes were saved in the regular Inkscape SVG. So I selected one of them, (a pentagon) and saved it as Plain SVG…and somewhere else on my computer, just in case.

It worked… in part. I can import the vector (1), but none of the vector’s contour and fill settings (which the author does from 4:00 onwards) worked for me.

I duplicated the vector layer and converted this copy layer to a paint layer. From there I can select the interior with the magic wand and colorize it in a layer below (2). That is, it helps, but ideally I could manipulate the outline and fill of the vector, like the author of the tutorial. What did I do wrong?

Just checking… did you select the right tools?

Yes. The first tool (arrow) works: I can select, resize or rotate the imported vector. The second tool does not work.

I had not informed the versions of the programs, they are these: Krita 5.0.6 • Inkscape 1.2.1

I took a test now. I created a square in Inkscape and converted it to path. I applied an outline of 4 pixels, in black color and saved the file directly as plain SVG. The only difference, compared to the previous experience, is that the outline came with 4 pixels… I still can’t edit neither the outline nor the fill.

I also tested the pentagon file in Gimp. I wasn’t sure how to import svg into the program… so I just dragged the file straight from Windows Explorer. Gimp opened a board where I could set the resolution… and just created a layer and placed the pentagon on it. Interestingly, he didn’t create the pentagon path.

The .svg file saved from Inkscape has the shapes grouped.
You can’t edit individual shapes in krita if they are grouped. You have to Ungroup them.
Even a single shape from Inkscape is in a group and has tro be ungrouped before you can change its stroke and fill properties.

With a single star shape, in an Inkscape saved .svg file, I don’t see the imported path in GIMP.
However, if I edit the .svg file to remove the group tags, then it imports ok:

I don’t know or understand why this grouping is done or why it has this effect.

3 Likes

Thank you👍

1 Like

Thank you, Ahab! :slight_smile: That was the problem: Inkscape inexplicably creates a group and I only notice it when I open the file a second time.

It is now importing normally in Krita and allowing editing. I’ll ask the Inkscape forum about it and then comment here.

I will also fix my svg files in basic ways and make them available for download as soon as possible…

3 Likes

Hello again. I opened a topic on the Inkscape forum, as I said. The problem (although it seems strange) is in the layers of that program: the path cannot be on any layer, because if it is, Inkscape groups the path. I’ll explain what to do to avoid this:

==> If you are creating a new file in Inkscape:

a) Before drawing, go to the layers docker, right-click the layer and choose “delete layer”.

b) Create the path. If you created a polygon it must be converted to path. Make sure there is no group.

c) Select the path and go to Edit > Resize Page to selection.

d) Finally, go to File>Save as… and save the file as Plain SVG. If you close Inkscape, the program will warn you that the file has not been saved. Then it’s your choice: if you want, save as a normal svg, (in another location or with another name) or close without saving.

==> If you already have a file in Inkscape, it’s probably in common svg format. Make a backup of it, just in case, before proceeding.

a) Check and make the necessary corrections in the path. If you created a polygon it must be converted to path. Make sure there is no group. The entire path must be on one layer;

b) Select the entire path and go to Edit > Cut;

c) In the layers docker, right-click the layer and choose “delete layer”;

d) Go to Edit > Paste in Place: the path will be pasted, it seems that nothing has changed… but it is no longer in any layer;

e) File>Save as… save the file as Plain SVG. When closing Inkscape, the program will warn that the file has not been saved. Choose what to do, as in the previous case.

In the tests I did, executing these procedures, the path can be imported and edited normally by Krita:

4 Likes

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