We've headed in the same direction after reviewing what we were trying
to accomplish. The conversion for svg is done automatically if the
browser does not support svg. I suppose I just wanted the quick one
step solution, but its more involved that I originally thought.
-----Original Message-----
From: Charles H. Woloszynski [mailto:chw@xxxxxxxxxxxxxxx]
Sent: Friday, August 23, 2002 12:02
To: Batik Users
Subject: Re: Problem with JPEG conversion while using EMBED
We have the same issue and solution. We ended up using <embed> for the
SVG and <img> for the JPEG. How are you doing the SVG conversion?
Automatically or manually?
The embed you show is for an svg file, not a JPEG file (based on
extensions).
We use a servlet that transcodes a SVG into a JPEG on the fly (with the
SVG URL as an arg to this servlet).
Ashcroft, Ken wrote:
>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: batik-users-unsubscribe@xxxxxxxxxxxxxx
>For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
>
--
Charles H. Woloszynski
ClearMetrix, Inc.
115 Research Drive
Bethlehem, PA 18015
tel: 610-419-2210 x400
fax: 240-371-3256
web: www.clearmetrix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
|