Possible to reference external svg images?
Question:Is it possible to reference (not import/embed) one SVG image within another?A little bit of background:A few years ago, I used Flash 6 (I think) on a vector animation project and came out with a nice little animation. In an effort to teach myself the ins and outs of Inkscape, I tried to rebuild several memorable stills from the old flash animation in Inkscape and ran into a bit of trouble. The flash file contains references to objects within the file, making it straightforward work to refer to an object in the movie (an image of a car, for example).In my case, I've created a major file to hold all the sub-objects (backgrounds, cars, trees, people, and so forth), and would like to be able to reference them in the main (completed file). The closest functionality I can find to this that Inkscape offers is importing another svg image. Unfortunately, this is insufficient for my purposes, as import results in one file being copied into the other. Thus, the original image becomes completely independent of the copy in the other file, requiring an annoying process of reimporting and correctly transforming every time you update the original image. This also duplicates the file data, effectively doubling the size of whatever you're trying to create.So, my question is, is it possible to simply reference one file within another, to say "this file exists here, load the data, but don't save it in this file" (the equivalent of "include" directives in C and HTML, or Inkscape's own "Clone" command)? In theory, if Inkscape preserved the location and the transformation matrix of the object, along with the reference, it would have all the information necessary to reconstruct the external image in the document. Thus, any modifications to the external image would be reflected whenever the main image was updated.If this doesn't exist in Inkscape, is it possible in standard SVG? If so, I'll make a feature request out of it, if not, are there any other methods that you can use to accomplish this task?Thanks,Nick _________________________________________________________________ Change is good. See what’s different about Windows Live Hotmail. http://www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&o...
Wasn't there just a post about this and the possibility of using linked clones from other files?
On 5/19/07, Nick Daly <myownlittlworld@...9...> wrote:
Question: Is it possible to reference (not import/embed) one SVG image within another?
A little bit of background: A few years ago, I used Flash 6 (I think) on a vector animation project and came out with a nice little animation. In an effort to teach myself the ins and outs of Inkscape, I tried to rebuild several memorable stills from the old flash animation in Inkscape and ran into a bit of trouble. The flash file contains references to objects within the file, making it straightforward work to refer to an object in the movie (an image of a car, for example).
In my case, I've created a major file to hold all the sub-objects (backgrounds, cars, trees, people, and so forth), and would like to be able to reference them in the main (completed file). The closest functionality I can find to this that Inkscape offers is importing another svg image. Unfortunately, this is insufficient for my purposes, as import results in one file being copied into the other. Thus, the original image becomes completely independent of the copy in the other file, requiring an annoying process of reimporting and correctly transforming every time you update the original image. This also duplicates the file data, effectively doubling the size of whatever you're trying to create.
So, my question is, is it possible to simply reference one file within another, to say "this file exists here, load the data, but don't save it in this file" (the equivalent of "include" directives in C and HTML, or Inkscape's own "Clone" command)? In theory, if Inkscape preserved the location and the transformation matrix of the object, along with the reference, it would have all the information necessary to reconstruct the external image in the document. Thus, any modifications to the external image would be reflected whenever the main image was updated.
If this doesn't exist in Inkscape, is it possible in standard SVG? If so, I'll make a feature request out of it, if not, are there any other methods that you can use to accomplish this task?
Thanks, Nick
Change is good. See what's different about Windows Live Hotmail. Check it out!http://www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_changegood_0507%0A%0A
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Yes, me! The feature request is at
https://sourceforge.net/tracker/?func=detail&atid=604309&aid=1719842...
The SVG standard allows linking to an SVG external file via the image. It can be done via the inkscape XML editor. For details of a trick to do it now, please see the feature request.
Thanks, Marc
On 20/05/07, Aaron Elmquist <ironranger@...155...> wrote:
Wasn't there just a post about this and the possibility of using linked clones from other files?
On 5/19/07, Nick Daly < myownlittlworld@...9...> wrote:
Question: Is it possible to reference (not import/embed) one SVG image within another?
A little bit of background: A few years ago, I used Flash 6 (I think) on a vector animation project and came out with a nice little animation. In an effort to teach myself the ins and outs of Inkscape, I tried to rebuild several memorable stills from the old flash animation in Inkscape and ran into a bit of trouble. The flash file contains references to objects within the file, making it straightforward work to refer to an object in the movie (an image of a car, for example).
In my case, I've created a major file to hold all the sub-objects (backgrounds, cars, trees, people, and so forth), and would like to be able to reference them in the main (completed file). The closest functionality I can find to this that Inkscape offers is importing another svg image. Unfortunately, this is insufficient for my purposes, as import results in one file being copied into the other. Thus, the original image becomes completely independent of the copy in the other file, requiring an annoying process of reimporting and correctly transforming every time you update the original image. This also duplicates the file data, effectively doubling the size of whatever you're trying to create.
So, my question is, is it possible to simply reference one file within another, to say "this file exists here, load the data, but don't save it in this file" (the equivalent of "include" directives in C and HTML, or Inkscape's own "Clone" command)? In theory, if Inkscape preserved the location and the transformation matrix of the object, along with the reference, it would have all the information necessary to reconstruct the external image in the document. Thus, any modifications to the external image would be reflected whenever the main image was updated.
If this doesn't exist in Inkscape, is it possible in standard SVG? If so, I'll make a feature request out of it, if not, are there any other methods that you can use to accomplish this task?
Thanks, Nick
Change is good. See what's different about Windows Live Hotmail. Check it out!http://www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_changegood_0507%0A%0A
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Hi, "Nick Daly" <myownlittlworld@...9...> wrote in message news:BAY116-W225BA0509E447A6C887D2DA6310@...2266... Question: Is it possible to reference (not import/embed) one SVG image within another? The topic has already been discussed in the news://6bee70da0704250234y49f37802uaa2aed665ececd85@...156... thread.
participants (4)
-
Aaron Elmquist
-
Jean-Marc Molina
-
Marc Eberhard
-
Nick Daly