This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: [docbook] Re: More customisations - scaling images
- From: Aidan Lister <aidanis at gmail dot com>
- To: Bob Stayton <bobs at sagehill dot net>, docbook-apps at lists dot oasis-open dot org
- Date: Wed, 8 Dec 2004 13:37:47 +1100
- Subject: [docbook-apps] Re: [docbook] Re: More customisations - scaling images
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=N+x4b8f/VL5HqaX8Q1bJD+zmZKFrXRNAfpQHJgW57JpgtPDpxDGiNPL8xRTJw6l3LxHR+d7FbrElgGK4uysoggJhn+yQggj0N3+bw2s0DGHsFhwhGK7SZdNbuLU5Ej3rDKwZww4EDBNMbE3ftq/cLqKGgeUmNmkUuLiP1tgDCjc=
- References: <40c9f84041202200834b69af1@mail.gmail.com> <87k6rvexxx.fsf@nwalsh.com> <091301c4dccb$528eab50$6400a8c0@toshiro>
- Reply-to: Aidan Lister <aidanis at gmail dot com>
Hi,
The only problem I've found, and I've read that page a couple of
times, is that it scales all images. I'd only like images which are
too large to be scaled.
Perhaps this entails customising the stylesheet to use a "if
x:getWidth() > 700px" sort of thing?
I physically resized the images, as I figure this is probably a better
solution (better quality rescale, and save bandwith).
Thanks for the response,
Aidan
On Tue, 7 Dec 2004 18:12:03 -0800, Bob Stayton <bobs@sagehill.net> wrote:
>
> I think Norm is referring to the imagedata reference page in his DocBook:
> The Definitive Guide:
>
> http://docbook.org/tdg/en/html/imagedata.html
>
>
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
> ----- Original Message -----
> From: "Norman Walsh" <ndw@nwalsh.com>
> To: "Aidan Lister" <aidanis@gmail.com>
> Cc: <docbook@lists.oasis-open.org>
> Sent: Monday, December 06, 2004 4:47 PM
> Subject: [docbook] Re: More customisations - scaling images
>
> / Aidan Lister <aidanis@gmail.com> was heard to say:
> | I've been hunting around, but I'm unable to find a way to
> | automagically scale all images to a maximum width. Is there a
> | parameter for this in the docbook xsl?
>
> This depends in part on your formatter, but if you set the
> scale/scalefit parameters appropriately, that's the result you should
> get. Uhm, I know I wrote up a fairly complete description of how all
> these parameters interact with a bunch of sample images, but I can't
> put my hands on it right now. (I'm at 35,000 feet.)
>
>