Ralf Wiener created FOP-2771:
Summary: height of external graphic not scaled down enough
Issue Type: Bug
Affects Versions: 2.2
Environment: Windows 7
Reporter: Ralf Wiener
Attachments: 1235.JPG, fop.log, test.pdf, test2_img.fo
I have an image that should go into a block. I specify to have it scaled down
to fit both width and height of the available space. That would be the whole
region-body minus the margins. FOP scales the image down to fit the width but
there's a vertical overflow because the resulting height does not fit.
The correct scaling, IMHO, would reduce the height (and width) further so the
image would fit into the available space, both horizontally and vertically.
Specifying the max-height with an absolute value (like 15cm) instead of 100%
results in correct scaling down as expected.
This message was sent by Atlassian JIRA