Inkscape.org
Beginners' Questions Inkscape doesn't display the embedded image
  1. #1
    jameswright jameswright @jameswright

    Hi,

    When I open the following SVG file in Inkscape the red coloured embedded image does not appear:

    https://ukdev.ezadspro.co.uk/qrcode/qrcodes/qrcode.svg

    However, it is visible in all of the web browsers I've tested.

    I have tried googling, but no joy. Can anyone help an SVG beginner?

    Thanks

    James.

  2. #2
    inklinea inklinea @inklinea⛰️

    <image href="data:image/png;base64  ( new )

    vs

    <image xlink:href="data:image/png;base64 ( older ) 

    https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

    xlink should work in both browsers and Inkscape.

     

     

    Qrcode
  3. #3
    jameswright jameswright @jameswright

    Inklinea,

    Thank you very much, that did indeed work, now all I have to do is search and replace "<image href=" with "<image xlink:href=" to fix my problem. Frustrating that I need to do that, but ho hum.

    Really appreciate you responding so quickly :)

    James.

  4. #4
    Nicolás Garitagoitia Nicolás Garitagoitia @nijotigajo

    i don't care if this post is a year old, i needed to say THANK YOU this was driving me crazy, my images were appearing blank all the time and I couldn't figure out why. 

    according to this https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href xlink:href is deprecated. 

  5. #5
    inklinea inklinea @inklinea⛰️

    I believe this has been fixed in the new Inkscape 1.3 (currently beta release)

    https://wiki.inkscape.org/wiki/Release_notes/1.3

    SVG Standards Compliance

    Added support for href and xlink:href in SVG header. This makes Inkscape more compatible with SVG 2.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Inkscape doesn't display the embedded image