You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dale Frye <da...@greatsky.us> on 2005/07/29 05:23:33 UTC

Path to image file referenced from SVG file

All,

I am trying to embed a JPEG image inside an SVG file and then rasterize 
it (svg2jpg). I need to determine what URL to use so Batik finds the 
file. The file works fine locally using Squiggle. When I try to run it 
through Cocoon/Batik I get the 'broken image" image instead of my image. 
The rest of the file is rasterized correctly. I've tried all types of 
paths and placing the image file in different locations but no luck.

Here's the definition of the pattern in the SVG file:

    <pattern id="specialcolor" patternUnits="userSpaceOnUse" x="0" y="0" 
width="194" height="139">
    <image width="194" height="139" xlink:href="Salmon.jpg"/>
    </pattern>

What should the path look like in xlink:href? Or is there something I 
can/need to configure in the sitemap?

Oh, I'm running 2.1.7 in Tomcat 5.0

Thanks
Dale Frye


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org