I forgot to mention a few details. We are using:
Java 1.3.1 Batik 1.1.1 The embed tag is stored inside of a xsl that our servlet retrieves from a database and transformed with that page's xml. When the browser requests the embed, the servlet then runs the appropriate code to build the SVG, then converts it to the jpeg. Ken Ashcroft -----Original Message----- From: Ashcroft, Ken Sent: Wednesday, August 21, 2002 17:15 To: Batik Users Subject: Problem with JPEG conversion while using EMBED Here is the situation, We are currently creating SVG graphics for display on our website, however because of the lack of SVG support, we want to have the option to render them as Jpegs. Our site builds the particular webpage the user is on, and uses <embed> tags to create and retrieve the SVG images. I have been successful to a point so far but need that last little push to finish this off. The conversion to jpeg works just fine, however, the browser doesn't display the image. If I right-click over the place where the image was to be displayed, the context menu is for a SVG still. Now, if I choose the show SVG option, IE will open up a new window and display the JPEG! So, why is IE not rendering the JPG? Below I have attached my SVG, and the embed tag. ---SVG--- ** Note: I strip off the <?xml header before the conversion. <?xml version="1.0" encoding="UTF-8"?> <svg width="100" height="100"><g><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,94.95952197223227,51.908241082348674 Z" transform=" rotate(270,50,50)" fill="#993366"/><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,94.99953792227716,50.20392837355304 Z" transform=" rotate(272.430376772894,50,50)" fill="#FFFF66"/><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,5.819823720571385,58.55055693616578 Z" transform=" rotate(384.75134478269115,50,50)" fill="#FF8080"/><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,33.09806107462242,91.70520903391812 Z" transform=" rotate(272.69002732393767,50,50)" fill="#660066"/><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,85.39520844266434,77.78811291362447 Z" transform=" rotate(591.8652087156992,50,50)" fill="#000080"/><path fill-opacity=".80" stroke-linejoin="miter" stroke-width=".5" stroke="gray" d=" M 50,50H 95 A 45,45 0,0,1,85.42788638962034,77.74643879787375 Z" transform=" rotate(553.7978444837792,50,50)" fill="#0066CC"/></g></svg> ---EMBED--- <embed id="asset-allocation" type="image/jpeg" height="100" width="100" src="/nexus/client-access/AssetAllocation-investor.svg"/> --------------------------------------------------------------------- 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]
