On Wed, 2002-11-27 at 15:11, Alexander Koppelhuber wrote:
> In my fo file I have the following part:
> <fo:block-container width="118mm" height="502px" top="107mm"
> position="absolute" >
>       <fo:block>
>               <fo:external-graphic src="url('../img/martina.jpg')"
> content-height="auto" content-width="auto"/>
>       </fo:block>
> </fo:block-container>

IIRC the content-width and content-height of auto means that it should
use the width and height of the image. It does not have an relation to
the surrounding block, that would be width="100%" and height="100%" I
These things are not currently implemented.

> With this settings of the block-container everything works fine.
> The image is larger in width an gets scaled correctly. However, if I
> change the height parameter of the container to my desired value
> no image will be rendered. The image is slightly larger than the needed
> size of the container. It seems that automatic scaling of an image
> only works if the height of the block container is the exact height of
> the image. Other combinations (block.width = img.width +
> block.height<img.height ||
> block.height/block.height < img.width/img.height) don't work, and no image
> gets
> rendered. Any workarounds for this bug (if it is one)?

I suspect that if it does not fit, ie. smaller than the block-container,
it will not display anything. Can you simply make the block-container
larger so it will fit all images.

If there is scaling happening then I'm not sure exactly what attributes
are making it work.

If you want all images to be the same size can you set the width and
height attributes to a pt value and will that work?

> This is not a big problem but a litte bit annoying, because part of the fo
> file gets
> generated by my application (different images can be used with varying
> size).
> Regards, Alex

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to