The "preserveAspectRatio="xMidYMid meet" is what is worrying me because
I placed an image in my original svg and stretched it in one dimension.
If  the svg is instructed to reload the image to preserve the aspect
ratio, I'll lose my reshaping which is what is happening.  I'm going to
try to remove this attribute and see what happens.   Thanks.

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Archie Cobbs
Sent: Tuesday, March 11, 2008 9:00 AM
To: [email protected]
Subject: Re: image

 

I think Batik is just adding the default values for those attributes
(which your document leaves out) based on the DTD. So whether they are
there with those values, or not present, should make no difference.

-Archie

On Tue, Mar 11, 2008 at 6:39 AM, Eric Hamacher
<[EMAIL PROTECTED]> wrote:

Well . . . I'm just going by what was input to Batik and what I got out
of it, that's it.

xlink:type="simple"
xlink:actuate="onLoad"
preserveAspectRatio="xMidYMid meet"
xlink:show="embed"

These attributes were added by Batik.  They weren't present in the svg
input.  They are present when I print the DOM after loading the svg,
that's all I'm saying.

Now can anybody give me any idea of why this is happening?



-----Original Message-----
From: Tonny Kohar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 5:01 AM
To: [email protected]
Subject: Re: image

Hi,

On Mon, Mar 10, 2008 at 8:18 PM, Eric Hamacher
<[EMAIL PROTECTED]> wrote:

> and screwing up the image.  How can I prevent Batik from doing this?
>

Assuming batik that Batik is implementing SVG spec correctly, then
your svg image will be like what batik show (although it is screwing
your image) for any compliant and spec conformant svg viewer. The
value that batik added is the default value for the attributes if it
is not specified implicitly. But to be sure you need to check SVG
Spec, whether it is the correct default value or not.

And as far as I am aware, batik is not adding any attributes if it is
not specified, it is just using computed cascade value. (note: it is
computed, not implicitly added by batik)

Cheers
Tonny Kohar
--
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com

---------------------------------------------------------------------
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]




-- 
Archie L. Cobbs

Reply via email to