cancel
Showing results for 
Search instead for 
Did you mean: 

Missing image in SVG

Former Member
0 Kudos

Hello,

I did SVG object with inserted image. I imported this SVG and image to xMII and tested.

All was correct. But when i tried to do animation object with this SVG, i got screen without image. I think it because in the SVG code there is incorrect xlink. Could somebody tell me correct xlink?

Does xMII 12 support it?

Thank in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello all,

I also have the same kind of problem, i.e. when I put the image tag with some image path in svg file, then I am able to see the image in svg. Please have a look on the following simple svg:


<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
         width="400" height="300"
         viewBox="0 0 200 200" text-rendering="geometricPrecision" > 

	<rect id="chkRect1" x="10" y="10" width="100" height="30" style="fill:white;stroke:black" />
	<text id="text1" fill="rgb(0,64,0)"  text-anchor="middle" x="40" y="100" >ABC </text>
	<image id="img1" x="45" y="10" width="200" height="180" xlink:href="C:\Lighthammer\Xacute\idea300.gif" />

</svg>

But when I put the same svg file in the following path "C:\Lighthammer\Xacute\SVGObjects\" and try to see it from Dynamic Graphics, then I am not able to see the image in xMII.

Please help me out in letting me know about the problem.

Thanks

Former Member
0 Kudos

You're in Java Land now. The hardcoded path to the image file might not work. Also, you can embed the image in the SVG if you want to using Base64 encoding. Google it to find out how, and remember that the ImageLoader automagically Base64 encodes images...thus the name of the property "EncodedImage".

Former Member
0 Kudos

Hi all,

I am able to see the image in the svg by giving the path in xlink:href as file url.

xlink:href="file:/C:/Lighthammer/Xacute/Logo.jpg"

Using this, I am even able to see the image in SAP xMII also.

But right now I have another problem i.e. changing the url of xlink:href through BLS is not taking place.

I have loaded the svg into the xml loader and then changing the values of the attributes. I can change the values of simple attributes (attributes without colon) easily, but the values of the attributes having colon in it (like xlink : href) is not getting changed.

Please suggest some of the ideasfor that...

Thanks

Answers (0)