I think this is a bug. The FO width property specifies the size of
the viewport (the space taken up on the page), not the rendered size of the
image. Just setting that to 3in won't resize the image. That
parameter should either put the 3in in content-width, or put scale-to-fit in
content-width. Can you please file a bug report on the SourceForge site on
this problem?
----- Original Message -----
Sent: Wednesday, July 16, 2008 5:40
PM
Subject: Re: [docbook-apps] Is the param
'default.image.width' working?
Here is a bit more on the issue:
Here is the FO code (xsltproc generated):
<fo:external-graphic src="url(images/basicFlow.png)" width="3in"
height="auto" content-width="auto" content-height="auto"
text-align="center"/>
and here is what is generated when I explicitly use a width with the
graphic:
<fo:external-graphic src="url(images/basicFlow.png)" width="3in"
height="auto" content-width="scale-to-fit" content-height="scale-to-fit"
text-align="center"/>
which presents the correct image size.
Any ideas??
Dean
In a message dated 7/16/2008 4:47:42 P.M. Pacific Daylight Time,
DeanNelson@aol.com writes:
Hello,
I'm trying to use the 'default.image.width' parameter to use as a
default image size. Here is the line in my customization layer:
<xsl:param name="default.image.width">3in</xsl:param>
and then in the source:
<graphic align="center"
fileref="basicFlow.png"/>
However, the resulting image is very large - like 50% of it
exceeds the page boundaries. It seems like no matter what I put in there it
always shows up WAY too big.
Am I doing something wrong or have I misunderstood this
parameter?
Thanks,
Dean Nelson