This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Graphic scaling, yet again
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Paul A. Hoadley" <paulh at logicsquad dot net>, <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 5 May 2005 00:24:33 -0700
- Subject: Re: [docbook-apps] Graphic scaling, yet again
- References: <20050505042334.GD45935@bigbird.logicsquad.net>
Hi Paul,
I knew I had those settings working when I was developing the 3rd edition of
my book, but when I just now tested with version 1.68.1, they did not work.
Reviewing my files, I realized I had made a small change in fo/graphics.xsl
to make it work, but I had failed to check it in. I have now done that, so
you can try the latest snapshot build.
http://docbook.sourceforge.net/snapshots/
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Paul A. Hoadley" <paulh@logicsquad.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, May 04, 2005 9:23 PM
Subject: [docbook-apps] Graphic scaling, yet again
Hello,
I know this topic has been thrashed to death, but I have a very
specific question, so bear with me for a minute.
I have a particular project where the primary output has been PDF for
some time, but where I now need to generate HTML Help. There are a
lot of images in figures, some large and some small. My aim has been
to leave images that fit in the available space as they are, and to
scale down images that are too large. Until now, I have been doing
this manually by adding:
contentwidth="12cm"
scalefit="1"
to the imagedata elements _of images that are too large_. This is
tedious because I need to identify which images are too large, and
measure the space on the page available, which might change if I
change the layout. But it works.
I now need to generate HTML Help, so as a first step I want to clean
up this hack. In his book here:
http://www.sagehill.net/docbookxsl/ImageSizing.html
and in the thread starting here:
http://lists.oasis-open.org/archives/docbook-apps/200411/msg00294.html
Bob suggests:
width="100%"
scalefit="1"
contentheight="100%"
In the thread, Bob later corrects 'contentheight' to 'contentdepth'.
Even using 'contentdepth', this doesn't work for me generating a PDF
with XEP. It appears it didn't work for Sam Steingold (the OP)
either, but the thread ends with Bob asking whether Sam was using FOP.
(If the thread went on, I missed it, and lists.oasis-open.org doesn't
seem to have it.)
Bob, I'm using XEP, and it doesn't work here either. No images are
scaled at all for me, which is the correct behaviour for ones that
fit, but incorrect for the large ones. I am using xsltproc---is it
because the XSLT processor can't determine the intrinsic image size?
This is the FO:
<fo:external-graphic src="url(images/clinical-desktop.png)"
width="100%"
height="auto"
content-width="auto"
content-height="100%"
text-align="center"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org