Hi
I save my image in inkscape as svg. Afterwards I'll load this svg graphic into gimp. GIMP display me a popUp with with/height and X/Y. I can change every parameter, but gimp doesn't show me the full graphic. gimp show me only a part of it.
Could you help me please
Thx
Marc
Import SVG into GIMP
Re: Import SVG into GIMP
GIMP should display the area of the drawing defined by the canvas. Does the canvas area properly encompass your drawing? If it does, are you able to post the SVG for us to examine? My own tests had GIMP open SVG's without a problem.
Re: Import SVG into GIMP
It does the same for me...
I create a button in Inkscape, group all selections,
save as svg.
Open it in GIMP and shows everything white... ???
The only way I found was to Export as Bitmap and then open in GIMP...
so I assume that something is wrong with saving and opening in SVG
I create a button in Inkscape, group all selections,
save as svg.
Open it in GIMP and shows everything white... ???
The only way I found was to Export as Bitmap and then open in GIMP...
so I assume that something is wrong with saving and opening in SVG
Re: Import SVG into GIMP
Are you saving as inkscape svg or plain svg?
Re: Import SVG into GIMP
... and you made sure the drawing is inside the canvas area?
Re: Import SVG into GIMP
I am encountering the same problem. I make a graphic (a closed path consisting of straight lines and bezier'ed to contain some curves) in inkscape and save it as an svg. When I 'path import' this into gimp, all I get it is the bunch of points. I lose the path information, connectivity as well as the 'beziered' attributes. I'm copy pasting the svg below. I am working with GIMP version 2.6.8 and Inkscape 0.47. Will appreciate any help.
-Morpheus
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="744.09448"
height="1052.3622"
id="svg2835">
<defs
id="defs2837" />
<g
id="layer1">
<path
d="m 286.88332,411.92547 0,292.94424 363.65492,4.04061 -187.88837,-36.36549 195.96959,-60.60916 c -84.46199,10.50948 -221.19812,25.5633 -195.96959,-30.30457 29.65808,-64.11857 183.4541,-198.28656 175.76654,-189.90868 -19.12749,20.84509 -76.59567,39.28599 -127.27922,54.54823 -63.26292,4.25338 -0.17772,-96.01951 24.24366,-155.56349 L 434.36559,446.27066 381.83766,236.15893 345.47217,529.10316 286.88332,411.92547 z"
id="path2849"
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</svg>
-Morpheus
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="744.09448"
height="1052.3622"
id="svg2835">
<defs
id="defs2837" />
<g
id="layer1">
<path
d="m 286.88332,411.92547 0,292.94424 363.65492,4.04061 -187.88837,-36.36549 195.96959,-60.60916 c -84.46199,10.50948 -221.19812,25.5633 -195.96959,-30.30457 29.65808,-64.11857 183.4541,-198.28656 175.76654,-189.90868 -19.12749,20.84509 -76.59567,39.28599 -127.27922,54.54823 -63.26292,4.25338 -0.17772,-96.01951 24.24366,-155.56349 L 434.36559,446.27066 381.83766,236.15893 345.47217,529.10316 286.88332,411.92547 z"
id="path2849"
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</svg>
Re: Import SVG into GIMP
I've been told by advanced GIMP users (at a GIMP forum) that GIMP's SVG features are quite immature, compared to Inkscape. Best to use Inkscape only and/or Export Bitmap (PNG) from Inkscape.
Why is it that you need to draw paths in Inkscape and export to GIMP? Maybe there is a better way to accomplish your goals? Could you draw the paths originally in GIMP instead, for example?
Sorry I don't know anything about XML
Why is it that you need to draw paths in Inkscape and export to GIMP? Maybe there is a better way to accomplish your goals? Could you draw the paths originally in GIMP instead, for example?
Sorry I don't know anything about XML
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Import SVG into GIMP
Testing your file with Inkscape 0.47 and GIMP 2.6.8 (on OS X 10.5.8, but this shouldn't make a difference) - I noticed that import in GIMP as paths worked well when I converted all path segments to curves [1] in Inkscape before importing the SVG into GIMP.morpheus wrote:When I 'path import' this into gimp, all I get it is the bunch of points. I lose the path information, connectivity as well as the 'beziered' attributes. (…) I am working with GIMP version 2.6.8 and Inkscape 0.47.
The underlying cause for these issues might be the optimized path data Inkscape 0.47 uses and which is known to cause issues in other SVG renderers (e.g. QtSvgRenderer (Gwenview of KDE) , Blender). I haven't specifically tested SVG import into GIMP of Inkscape files created after changing the SVG output options in the Inkscape preferences to 1) not Allow relative coordinates and 2) Force repeat commands, but it might be worth a try whether it helps to solve your issue.
[1] Note: this is not the same as converting cusp nodes into smooth nodes: in the node tool, select all (Ctrl+A) and use the 12th button on the controls bar ("Make selected segments curves") - this keeps the shape as is, but adds handles to each node even for straight line segments (in this case collinear with the segments). This forces Inkscape to rewrite the path data in a way that seems to be better handled by GIMP's SVG import library (librsvg).
Re: Import SVG into GIMP
Yeah, it's annoying. Inkscape is just so much better for editing paths. Gimp's manual even suggests this. But getting the paths into Gimp has been a problem for me. Converting all to curves has fixed that, but then you cannot reasonably scale the paths.
The solution I found is not slick, but it works. I make an Inkscape document with dimension large enough to contain the gimp image I am working on. I flatten my working copy in gimp and save as an image, then import into my inkscape document and center it. Then I will put that image on a layer where I can hide it and what not while I work on the paths that I ultimately want to become gimp selected areas. Once I have my paths, I save the file as svg. The reason for centering the gimp image is so you can make the paths on top of the image where you want them to be and then load them into gimp and not have to move them around. Go back into gimp. I load my xcf that I am working on and do a File->Open as layers on the svg. This usually gives me larger layers than the canvas but it should be centered around the same image. Tell gimp Image->Fit canvas to layers. Import for the path import step. Here's another problem, once you select to load the svg as layers, you get a nice box to adjust coordinates (which you don't want to do), and a little check box that says "Import paths". This does not seem to work. At least it imports nothing for me. Perhaps if you save the inkscape svg without the background gimp image in it? Don't know. No worries, this step was just to get your gimp document sized to match your inkscape document. You now just go into paths, right click, import path and load that same svg again and your paths should be right where you wanted them.
So now you have two working files that are aligned with each other. Provided your project does not need to change size, you can easily create more paths in the inkscape document and import it into your gimp without worries of gimp stretching the f*ck out of your path or other such fun stuff.
The solution I found is not slick, but it works. I make an Inkscape document with dimension large enough to contain the gimp image I am working on. I flatten my working copy in gimp and save as an image, then import into my inkscape document and center it. Then I will put that image on a layer where I can hide it and what not while I work on the paths that I ultimately want to become gimp selected areas. Once I have my paths, I save the file as svg. The reason for centering the gimp image is so you can make the paths on top of the image where you want them to be and then load them into gimp and not have to move them around. Go back into gimp. I load my xcf that I am working on and do a File->Open as layers on the svg. This usually gives me larger layers than the canvas but it should be centered around the same image. Tell gimp Image->Fit canvas to layers. Import for the path import step. Here's another problem, once you select to load the svg as layers, you get a nice box to adjust coordinates (which you don't want to do), and a little check box that says "Import paths". This does not seem to work. At least it imports nothing for me. Perhaps if you save the inkscape svg without the background gimp image in it? Don't know. No worries, this step was just to get your gimp document sized to match your inkscape document. You now just go into paths, right click, import path and load that same svg again and your paths should be right where you wanted them.
So now you have two working files that are aligned with each other. Provided your project does not need to change size, you can easily create more paths in the inkscape document and import it into your gimp without worries of gimp stretching the f*ck out of your path or other such fun stuff.
-
- Posts: 22
- Joined: Wed Dec 12, 2012 8:04 pm
Re: Import SVG into GIMP
~suv wrote:I noticed that import in GIMP as paths worked well when I converted all path segments to curves [1] in Inkscape before importing the SVG into GIMP.
I'm resuming this post just to say thankyou! This helps me a lot.
I tried with Inkscape 0.48.2, Gimp 2.8.2, Mac OS X 10.6.8.
Is there a keyboard shortcut for that button? I cannot find on tutorial and tooltip doesn't help...
I haven't specifically tested SVG import into GIMP of Inkscape files created after changing the SVG output options in the Inkscape preferences to 1) not Allow relative coordinates and 2) Force repeat commands, but it might be worth a try whether it helps to solve your issue.
just tested, didn't work.
The strange thing is not all my paths were translated incorrectly (and I have a lot of rectangular nodes, architectural drawings).
Thanks again, I think it has to be put on Inkscape or GIMP manual or some howto!
Re: Import SVG into GIMP
sanzoghenzo wrote:~suv wrote:I noticed that import in GIMP as paths worked well when I converted all path segments to curves [1] in Inkscape before importing the SVG into GIMP.
I'm resuming this post just to say thankyou! This helps me a lot.
I tried with Inkscape 0.48.2, Gimp 2.8.2, Mac OS X 10.6.8.
Is there a keyboard shortcut for that button? I cannot find on tutorial and tooltip doesn't help...
I'm not sure if you might be looking for "Make selected segments curves" button on Node tool control bar?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
-
- Posts: 22
- Joined: Wed Dec 12, 2012 8:04 pm
Re: Import SVG into GIMP
brynn wrote:I'm not sure if you might be looking for "Make selected segments curves" button on Node tool control bar?
yep, I wondered if there's a shortcut for that button. And I found it: shift+u.
Should be added to the tooltip or the tutorial