![]() Registered Member ![]()
|
In the online Krita manual (at the link: https://docs.krita.org/Vector_Graphics) there is written:
"You can copy and paste vectors from Krita to Inkscape, or from Inkscape to Krita. Only the SVG 1.1 features are supported, so don't be surprised if a mesh gradient doesn't cross over very well." I tried it, but in Krita are imported only raster images and NOT vector entities! Is it normal? Is there a particular way to do copy-paste correctly? |
![]() Registered Member ![]()
|
With Krita 4.0.0, I've just copied/pasted several vector objects from Inkscape to Krita, with no problem. Even if you don't have a vector layer in Krita, it will create a vector layer to hold the pasted vector object. The only problem I've found is that the relative positions of grouped objects can be lost in some cases.
How do you know that Krita has imported a 'raster image'? Can you provide a link to a screenshot showing this? |
![]() Registered Member ![]()
|
On windos 7 I have no problem. It seems to happen only on the PC with windows 10. When I paste the vectors, the typical message "Missing color profile - Krita" appears. The message is the same that appears when you paste a screen capture (and Ask each time option is enabled in Color Management panel).
Then Krita creates a pictorial layer and pastes the screen capture of the vector copied into the clipboard I installed both 64bit versions of Krita (portable and not). Could it be the operating system? Thanks |
![]() Registered Member ![]()
|
The error message and the change in Operating System are probably significant.
This needs a developer to give advice. Please be patient and wait for one to read your post and comment. |
![]() KDE Developer ![]()
|
If Krita pastes a raster version, then that's because there's a raster version on the clipboard. What actually gets placed on the clipboard by the source application depends on the OS, the version of the OS, the toolkits involved, and a single ctrl-c can put more than one version of the data on the clipboard.
We'll have to investigate if it's actually possible on Windows 10 to get the vector data -- and what it is labeled as. Please do make a bug report at bugs.kde.org and we can look into it. |
![]() Registered Member ![]()
|
I made my initial reply after using the krita .appimage on Linux. I've just tried it on Windows 10 and it does behave as reported by savmuschi.
There is a mitigation: You can save from Inkscape as a plain .svg file and then open that .svg file in Krita. Then you can copy vector objects from that opened .svg file to a vector layer in another open krita image. There is a scaling mismatch of about 2:1 but that is not a problem with vector objects since they can be rescaled easily. |
![]() KDE Developer ![]()
|
Yes... I also tested on Win10 -- and this does need investigation. Problem is, there can be so many culprits. OS version, toolkit (GTK or Qt), Inkscape or Krita -- trying to figure this out is going to be interesting!
|
![]() Registered Member ![]()
|
Hello there,
Unfortunately, none of the above seems to work in Krita 4.1 on Windows 8.1 neither cut/paste, or opening files saved as inkscape, plain, or optimised. Everything is imported as an image. is there any other way to do this? edit : manually inserting the SVG file into the KRA layers folder does seem to work. For example : - create a vector layer in your Krita drawing and save. - open the saved .kra file as a .zip archive and find the vector layer folder in the image/layers/ folder - save your Inkscape file over the top of the content.svg file - re-zip/re-name the archive back to .kra /!\ I also found that saving the Inkscape file as plain svg worked better for the viewBox
Last edited by escott on Sun Jul 08, 2018 12:05 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
I just wanted to add, if you want to edit the individual vector shapes once pasted, select w/ Shape Select tool and Ungroup. That's what I had to do. I wish there was a way to import the vectors to different layers in the same way I created the image in Inkscape (I'm adding textures via clipping groups to individual shapes)-- if there is a way, I don't know it (I'm using Win 10).
|
![]() Registered Member ![]()
|
If I copy from Inkscape 0.92, is pasted as RASTER in Krita 4.1.5
------------from Inkscape 0.48,-------------- as VECTOR layer More copy/paste tests: Inkscape 0.48 -----> libreoffice 6.1.3.2 ----option as vector (semi-transparency missing) Inkscape 0.92 -----> libreoffice 6.1.3.2 ----only raster Inkscape 0.48 -----> scribus 1.5.3 ----as vector Inkscape 0.92 -----> scribus 1.5.3 ----as VECTOR "fluid text" in inkscape 0.48 ----------> krita 4.1.5 ----raster vector graphics AND fluid text on inkscape 0.48 ----------> krita 4.1.5 ----only vector graphics Under Windows 8.1 Hope this help to solve the mistery! |
![]() Registered Member ![]()
|
With the master development version of inkscape from yesterday (master-2256) this works well again.
tested on windows 10, krita 4.1.5 You can download this build for testing here: https://ci.appveyor.com/project/inkscap ... s/20376016 You can see the builds for inkscape here: https://ci.appveyor.com/project/inkscap ... pe/history ( these are not stable versions...) |
![]() Registered Member ![]()
|
Great! I think is a good step to have a flawless work between both programs.
Anyway, once the Beziers are pasted, appear grouped and for me doesn't work the "ungroup" technique that Foxsen said before: is not possible to select or edit the imported paths individually. When I ungroup it, only appears a group layer with: an empty raster layer AND the same vector layer as “inexpugnable” as before. Not sure if this is a bug, is the supposed behavior, or is preferable to open another topic. |
![]() Registered Member ![]()
|
I answer myself about how to ungroup imported/pasted vectors:
Is necessary to alt + right click and select "ungroup" from the contextual menu. As far as I know, there is no other way to access to this menu. In my opinion, not very intuitive way. The command usually used to ungroup layers en Krita (Control + Shift + G), and also widely used to others programs to ungroup, creates, when executed in a vector layer in Krita, a group with the same vector layer that masks a new empty raster layer over it. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]