From: Nikolai Grigoriev (grig@renderx.com)
Date: Thu Feb 27 2003 - 11:54:23 PST
Hi Bernd,
> width="100%"
> height="100%"
> But this results in lots of space above landscape images.
Yes. 'Width' and 'height' specify the viewport size - a rectangle through
which the picture is shown. Actual picture size need not coincide
with the viewport - it could be bigger (then it should be clipped -
though I am not sure if we implement it) or smaller - then the image
occupies only a part of the viewport, leaving the rest blank -
that's what you see in your case. The only way to eliminate white
space before the image is to leave its 'height' equal to "auto".
> - When image is too wide, scale-to-fit to the available width
> - When the image is too high, scale-to-fit to the available height.
To the best of my understanding, it cannot be expressed in XSL FO,
and there is no suitable workaround in XEP. Sorry.
Best regards,
Nikolai Grigoriev
RenderX
----- Original Message -----
From: "Bernd Kuemmerlen" <bkuemmer@gmx.net>
To: <xep-support@renderx.com>
Sent: Thursday, February 27, 2003 12:31 PM
Subject: [xep-support] Scaling of images again...
> Hello,
>
> in http://xep.xattic.com/lists/xep-support/0376.html, David mentioned a
> way to get image scaling when the width exceeds the available width.
> This works very well.
>
> We now have the problem that sometimes, our images are not too wide but
> too high (when the pagesize is a square format and the images are
> portrait). Is there a way to get the following scaling behaviour?
>
> - When image is too wide, scale-to-fit to the available width
> - When the image is too high, scale-to-fit to the available height.
>
> I tried something like
> <fo:external-graphic src="url(img/large-image.gif)"
> content-width="scale-to-fit"
> content-height="scale-to-fit"
> width="100%"
> height="100%"
> scaling="uniform"/>
>
> But this results in lots of space above landscape images.
>
> So, is there a way to achieve the behaviour I described?
>
> Thanks for any help
> Bernd
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Thu Feb 27 2003 - 11:52:36 PST