Hello everyone,

I am taking an Image in batik and changing its size. i prob should do
this with an image api. but hey im using batik already heh,  and it
seems fast to do really simple image stuff.
I can scale using pretend tranform="scale(2.0)" easily. but i wanna
stretch so an image fits the svg size. If i do width="100%" and
height="100%" for an image, the svg opened in SVGViewer shows the
image 'stretched' correctly with aspect ratio, but the saved jpeg from
JpegTranscoder doesnt seem to want to save it... Is this a Batik issue
or is my svg a lil screwy...



Here is the svg it saves if interested...


Thanks in advance,
Arian


<svg contentScriptType="text/ecmascript" width="400"
xmlns:xlink="http://www.w3.org/1999/xlink"; zoomAndPan="magnify"
contentStyleType="text/css" height="100" preserveAspectRatio="xMidYMid
meet" xmlns="http://www.w3.org/2000/svg"; version="1.0">

<image x="0" y="0" width="100%"
xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="a.jpg"
xlink:type="simple" xlink:actuate="onLoad" height="100%"
preserveAspectRatio="xMidYMid meet" xlink:show="embed"/>

</svg>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to