cole.watson
cole.watson

Reputation: 81

Image Element in SVG File not Showing in FireFox or Illustrator

I am trying to get an image to display in my .svg file. It currently will show on Chrome but does not show up on Firefox and Adobe Illustrator. I have looked around a lot online and have yet to find a solution to my problem. Any advice?

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" height="963" width="744" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"  >
<image xlink:href="images/image.png" height="45" y="10" x="662"  />
</svg>

Upvotes: 2

Views: 948

Answers (1)

Robert Longson
Robert Longson

Reputation: 124229

You need to give the image element height and width attributes. These are mandatory in SVG 1.1.

SVG 2 proposes that height and width become optional but that specification is still in progress as are implementations of it. Firefox and Illustrator don't yet implement that SVG 2 feature though they do implement others.

Upvotes: 1

Related Questions