if conversion is an option you can also embed it as base64 data ie
xlink:href="data:;base64,/9j/4AAQSkZJRgABAgIAAAAAAAD//gAeQUNEIFN5c3RlbXMgRGlnaXRhbCBJbWFnaW5nAP/AABEI AKAAoAMBIgACEQEDEQH/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
The nullpointerexception can be caused by anything, do error.log and core.log reveal anything more specific?
Brent L Johnson wrote:
Ouch - I think Batik supports embedding an image into an SVG file. I tried this using an xlink attribute like the following:
<?xml version="1.0"?> <svg width="65" height="23" xmlns:xlink="http://www.w3.org/1999/xlink"> <ttf-font type="Junegull"/> <image x="0" y="0" width="65" height="23" xlink:href="/images/button.png" /> <text x="33px" y="18px" style="text-anchor:middle;fill:rgb(255,255,255);font-size:12;font-family :Junegull">Add</text> </svg>
(ignore the <ttf-font> .. I have a stylesheet that transforms this into a font <def>)
When I try and run the pipeline that does a svg2jpeg serialize.. I get the following: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: java.lang.NullPointerException
Anyone else have any experience with using Xlink to embed images into an svg?
Thanks,
- Brent
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
