external-graphic and ratio

2002-06-28 Thread Rodolphe VAGNER
Hello,

Is it possible to apply a ratio on an image trhought
an external-graphic fo element ?
I mean I want to display a graphic at 1/3 its size for example.
Can anyone help ?
Thanks


- Original Message - 
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 10:36 PM
Subject: Re: What kind of TIFF does FOP support


 Oleg Tkachenko wrote:
  btw, isn't jimi some kind of obsolete library intended to be used by 
  those tied to jdk1.1?
 
 Well, obsolete or not, it works, is available, platform neutral,
 easy to install and provides support for a wide range of graphics
 formats, some of them rather obscure. Do you know of a JAI
 implementation, preferably OSS and/or freely available, which
 supports all common subformats of TIFF, PNG, BMP and perhaps a
 few more?
 
 A quick sweep through sourceforge revealed only a TIFF
 implementation.
 
 The Sun JAI implementation offers all the formats, but
 installation requires more than just dropping a jar into
 the classpath, and it contains platform specific binaries
 (good for speed but screws Mac users and others).
 
 J.Pietschmann
 



Re: external-graphic and ratio

2002-06-28 Thread J.Pietschmann
Rodolphe VAGNER wrote:
Is it possible to apply a ratio on an image trhought
an external-graphic fo element ?
I mean I want to display a graphic at 1/3 its size for example.
Can anyone help ?
Thanks
You can't scale a graphicto 1/3 or the original size. One
problem is actually: what is the original size, for
most bitmap formats.
You can specify height and or width in absolute units or
relative to the reference area:
fo:external-graphic height=2cm width=1cm
  src=foo.jpg/

- Original Message - 
You are supposed to trim uneccesary old quotes.
J.Pietschmann