Arian Hojat wrote:
> 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,
Hmm? Your image element has 'preserveAspectRatio' (PAR) set
to 'xMidYMid meet', this disables non-uniform scaling, so I think
you must have been looking at a different image...
> 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...
I think it's your SVG, but what do you mean by the JPEGTranscoder
doesn't want to save it? It saves it with uniform scale? Or it
bails completely? If it saves it - what are the dimensions of the
saved JPEG?
> Here is the svg it saves if interested...
What saves this?
> <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:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]