This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: <graphic> scaling
- From: Sam Steingold <sds at gnu dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 24 Nov 2004 13:44:35 -0500
- Subject: [docbook-apps] Re: <graphic> scaling
- Cancel-lock: sha1:yvzXxvdN1r0fZroggW0e2WMvQU8=
- Organization: disorganization
- References: <ullczrxp1.fsf@gnu.org> <032a01c4d20a$c54fe530$6600a8c0@toshiro>
- Reply-to: sds at gnu dot org
> * Bob Stayton <obof@fntruvyy.arg> [2004-11-24 01:48:36 -0800]:
>
> If you are not using FOP, then you can use these two attributes on
> your imagedata element to achieve what you want:
>
> width="100%"
> scalefit="1"
>
> These attributes mean the viewport for displaying the graphic should
> be 100% of the available width, and the graphic should be scaled to
> fit that viewport.
Thanks, indeed, this is precisely _what I asked for_,
although not quite what I turned out to _want_. :-)
I want the pictures to be take 100% when that requires _shrinking_ of
the image, but not when that requires _stretching_ it.
E.g., when the image is huge, I want it shrunk to fit into the viewport,
but when it is small, I want it to be displayed as is.
> If you are using FOP, then I don't know of any combination of
> attributes that will scale to fit. The current version of FOP does not
> support the content-width property, which is where the scale-to-fit
> value would go.
Even if FOP does not support that yet, does DocBook FO stylesheets
produce content-width properties?
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Ph.D. stands for "Phony Doctor" - Isaak Asimov, Ph.D.