xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans <hans.buchw...@webspeed.dk>
Subject Re: Image tag inside svg
Date Thu, 21 Sep 2006 10:47:32 GMT

Thanks a lot Thomas - that worked nicely.
I appreciate your help!


thomas.deweese wrote:
> 
> Hi Hans,
> 
>   See below...
> 
> Hans <hans.buchwald@webspeed.dk> wrote on 09/20/2006 04:28:18 AM:
> 
>> > I have a strange problem - probably because I'm a complete novice.
>> > 
>> > I have an SVG-file with an internal image which have a transformation
>> > matrix.
>> > When I load this in an IE-browser it looks ok.
>> > 
>> > But when I put it in a batik JSVGCanvas the image-parts gets a wrong
>> > aspect-ratio.
>> > The problem does not occur when the transformation matrix is like (100 
> 0 0
>> > 100 ...
>> > What have I overlooked?
> 
>     The Adobe viewer never implemented the attribute
> 'preserveAspectRatio' (PAR).  Even more bizarrely the
> default behavior they use is that of setting PAR to
> 'none'.  Batik correctly implements PAR with it's
> default value of 'meet xMidYMid'.  I suspect you will
> get your desired rendering if you set the PAR attribute
> on the image element with a value of 'none'.
> 
>> > Can I opload the example file like this?
>> >  http://www.nabble.com/file/31/319009346.801.svg 319009346.801.svg 
>> > 
>> > Best regards
>> > Hans
>> > 
>> 
>> -- 
>> View this message in context: 
> http://www.nabble.com/Image-tag-inside-svg-
>> tf2299629.html#a6403558
>> Sent from the Batik - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Image-tag-inside-svg-tf2299629.html#a6425545
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message