Michael Voyes wrote:
OK, you're right, so imagine the following :
My document is as follows :
<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;"
xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
width="3508" height="2480" viewBox="0 0 3508 2480"
overflow="visible" enable-background="new 0 0 3508 2480"
xml:space="preserve">
and image is defined such as :
<image width="250" height="250" preserveAspectRatio="xMidYMid meet"
id="XMLID_1_" xlink:href="logo.gif" transform="matrix(1 0 0 1 2800 50)"/>
Now, suppose my logo.gif file is in fact 412 * 217 pixels sized. I would
like this logo fit to a 250*250 pixels box with aspect ratio preserved.
What's wrong with what stated above.
Nothing, it should render fine in Batik. Are you viewing it with
the Adobe Plug-in? If so you are out of luck for what ever reason
they have not implemented preserveAspectRatio (PAR) and the 'default'
they choose to implement is 'none' - contrary to the spec.
Also just another nit, GIF isn't required to be supported by an
SVG implementation (I would suggest using an indexed PNG instead).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]