The attached FO file shows how to do this. Actually, Batik was so clever I had to trick it into resampling using a dummy feColorMatrix filter which does not modify the image. Without the filter the image doesn't get down-sampled.
But for this to work, you need to know the image size. If you don't you're stuck unless you're happy to dive into FOP source code and implement an optional resampling of the images. An alternative if you don't know the image size and therefore cannot use the SVG work-around, you can try to find a tool that lets you postprocess the PDF and downsample the images that way. Or you preprocess the images to a maximum resolution before running FOP. On 07.02.2007 14:11:08 Uwe Kubosch wrote: > Thank you very much for your answer! > > > The work-around: > > Create a fo:instream-foreign-object and include the image inside some > > minimal SVG wrapper. That should get the image scaled down. > > Could you please include a minimal, but detailed example? An example of > tag I have now: > > > <fo:external-graphic src="mylargeimage.jpg" content-width="51mm" > border="0mm" margin="0mm" space-before="0mm" space-after="0mm"/> > > > The image height is unknown and unspecified. Could you write an example > of how to include this in an SVG wrapper? > > > Uwe Jeremias Maerki
svg-scaled-image.fo
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]