Inkscape.org
  1. #1
    oldschoolcowboy oldschoolcowboy @oldschoolcowboy

    The link choice will not render visibly the linked svg in the new svg file. The image space shows up in an html file but the image is not visible. Embed and the editable choice both work. I played around tying to bring a file in every possible way it can be done. The link method will not work. I can't figure out why. I get no error messages no warning messages. I tried to view the file in an html file in 3 browsers. Same results. View the svg file with the linked svg directly in the browser the linked method works on all the browsers I tried.

    This is very weird.

  2. #2
    inklinea inklinea @inklinea⛰️
    *

    This ? 

    The two files are called inception.svg and star.svg - but the forum adds something to the filenames poss to make them unique.

    If you rename them to inception.svg and star.svg should work :)

    edit hmm, can't seem to get the inception file to upload lol 

    heres the code

    <svg width="100%" height="100%" viewBox="-100 -100 200 200" version="1.1"
         xmlns="http://www.w3.org/2000/svg"
         xmlns:xlink="http://www.w3.org/1999/xlink">
      <rect id="svg_1" height="100" width="100" x="-60" y="-60" stroke-width="1.5" stroke="#000" fill="#fff"/>
      <image x="-50" y="-50" width="80" height="80" xlink:href="star.svg" />
    </svg>

    Star
    Inception
  3. #3
    inklinea inklinea @inklinea⛰️

    Also xlink is depreciated in browsers now 

    <svg width="100%" height="100%" viewBox="-100 -100 200 200" version="1.1"
         xmlns="http://www.w3.org/2000/svg">
      <rect id="svg_1" height="100" width="100" x="-60" y="-60" stroke-width="1.5" stroke="#000" fill="#fff"/>
      <image x="-50" y="-50" width="80" height="80" href="star.svg" />
    </svg>

    Should work fine