Scaling images

2014-02-24 Thread markus.sticker.epos
Hello FOP, I've got an issue about scalling images. The target is to scale images so they fit to the space on the page. Scaling the width works fine. I set this (breit.png is a picture with extreme width): fo:external-graphic src=url(file:///c:/temp/SernaPlugin/Source/draft/draft/breit.png)

Re: Scaling images

2014-02-24 Thread Luis Bernardo
I think the issue is height=100%, which doesn't work the way you probably expect... When you specify 100%, you want 100% of what? Width does not suffer from the same problem because the width is constrained by the page width. Since the height is not constrained by the page height, as you maybe

AW: Scaling images

2014-02-24 Thread markus.sticker.epos
Ok should I use something like this? fo:block-container width=100mm height=150mm border=solid solid solid solid border-color=pink background-color=violet fo:block id=id1049528 border=solid solid solid solid border-color=red background-color=blue fo:external-graphic

Re: Scaling images

2014-02-24 Thread Luis Bernardo
Yes, that is the best approach. You can even check now that a percentage for the height attribute in the external-graphic element works since the height of the containing block is being explicitly set. On Mon, Feb 24, 2014 at 2:25 PM, markus.sticker.e...@zf.com wrote: Ok should I use

AW: Scaling images

2014-02-24 Thread markus.sticker.epos
But it fails also. Is there really a support of content-height=scale-to-fit? Von: Luis Bernardo [mailto:lmpmberna...@gmail.com] Gesendet: Montag, 24. Februar 2014 15:46 An: fop-users@xmlgraphics.apache.org Betreff: Re: Scaling images Yes, that is the best approach. You can even check now