How to link external svg file

Post questions on how to use or achieve an effect in Inkscape.
User avatar
sphaira
Posts: 9
Joined: Sun Apr 25, 2010 9:14 pm

How to link external svg file

Postby sphaira » Wed Jan 11, 2012 10:14 pm

Hello,

In my main svg file i want to have an other svg file linked but not embedded. How to do that ?

Is it possible to link (but not import embedded) a layer, gradient or anything else of another svg file ?

Thanks.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to link external svg file

Postby brynn » Thu Jan 12, 2012 5:17 am

Hi sphaira,
I don't think you can link any portion of a file, such as layer or object. But you can import another SVG file. When you do that, you'll get a little dialog with a choice to link or embed.

You can paste objects of course, which contain gradients. But not gradients alone. And you can't paste layers either. ...OH, actually, there might be a way to paste a layer. That's because Inkscape layers are really special groups. And a group is an object, so you should be able to paste it. But I'm not sure how it would be done.....maybe using XML editor? That's the only way I know to access the layer as a group. Maybe someone else will have an idea about that?

That certainly would be a nice feature though, to be able to import part of a file, especially layers!

User avatar
sphaira
Posts: 9
Joined: Sun Apr 25, 2010 9:14 pm

Re: How to link external svg file

Postby sphaira » Thu Jan 12, 2012 6:47 am

I have the 0.48.2 inkscape's version and when i import svg file with Ctrl + I there isn't choice for link or embed. It is always embed.

In the svg specification it is possible to link other svg with the use of xlink attribut. Is it possible in inkscape ?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How to link external svg file

Postby ~suv » Thu Jan 12, 2012 8:23 am

sphaira wrote:In the svg specification it is possible to link other svg with the use of xlink attribut. Is it possible in inkscape ?
Not really supported in Inkscape yet (you can link to an external SVG file with the <image> tag (no GUI available), but the linked SVG image is rasterized in Inkscape at a fixed resolution (and it doesn't work in the current available Windows builds, and fails in Inkscape 0.48.2 for Mac OS X, too).

See also: Subject: Linking SVG files (inkscape-user mailing list)

User avatar
sphaira
Posts: 9
Joined: Sun Apr 25, 2010 9:14 pm

Re: How to link external svg file

Postby sphaira » Sat Jan 14, 2012 6:05 am

it's a pity, but perhaps in a future release.

sicofante
Posts: 5
Joined: Sun May 18, 2008 12:40 pm

Re: How to link external svg file

Postby sicofante » Sun May 11, 2014 3:50 am

Sorry for necroposting but I understand this is yet not implemented? I'm using trunk and can't find any option to linking instead of embedding an external SVG.


Return to “Help with using Inkscape”