Re: SV: Rescaling images to 300dpi

2007-02-08 Thread Andreas L Delmelle
On Feb 8, 2007, at 08:38, Uwe Kubosch wrote: Hi, On Wed, 2007-02-07 at 15:51 +0100, Jeremias Maerki wrote: 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

Re: SV: Rescaling images to 300dpi

2007-02-08 Thread Jeremias Maerki
On 08.02.2007 08:38:03 Uwe Kubosch wrote: On Wed, 2007-02-07 at 15:51 +0100, Jeremias Maerki wrote: 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

SV: Rescaling images to 300dpi

2007-02-07 Thread Johan Johansson
In your fop config file add this after the root: !-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -- source-resolution300/source-resolution !-- Target resolution in dpi (dots/pixels per inch) for specifying the

SV: Rescaling images to 300dpi

2007-02-07 Thread Johan Johansson
fop.xconf is used by default if no config is selected by the: fop -c config-file -Ursprungligt meddelande- Från: Uwe Kubosch [mailto:[EMAIL PROTECTED] Skickat: den 7 februari 2007 13:23 Till: fop-users@xmlgraphics.apache.org Ämne: Re: Rescaling images to 300dpi Thanks for the answers!

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Uwe Kubosch
On Wed, 2007-02-07 at 13:40 +0100, Uwe Kubosch wrote: On Wed, 2007-02-07 at 13:35 +0100, Johan Johansson wrote: fop.xconf is used by default if no config is selected by the: fop -c config-file I am using the FOP ANT task to start FOP, and it seems the default config is NOT used, at least

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Uwe Kubosch
On Wed, 2007-02-07 at 13:35 +0100, Johan Johansson wrote: fop.xconf is used by default if no config is selected by the: fop -c config-file ...and the default fop.xconf file sets a resolution of 72dpi. Doesn't that mean that this setting does not affect the output? I have tried to find

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Jeremias Maerki
On 07.02.2007 13:40:27 Uwe Kubosch wrote: On Wed, 2007-02-07 at 13:35 +0100, Johan Johansson wrote: fop.xconf is used by default if no config is selected by the: fop -c config-file ...and the default fop.xconf file sets a resolution of 72dpi. Doesn't that mean that this setting does

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Uwe Kubosch
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:

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Chris Bowditch
Uwe Kubosch wrote: On Wed, 2007-02-07 at 13:35 +0100, Johan Johansson wrote: fop.xconf is used by default if no config is selected by the: fop -c config-file ...and the default fop.xconf file sets a resolution of 72dpi. Doesn't that mean that this setting does not affect the output?

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Uwe Kubosch
On Wed, 2007-02-07 at 13:45 +, Chris Bowditch wrote: I have tried to find references to this setting, and I found an old discussion (2004) that stated that this setting was only used for rasterized output like TIFF or PNG. Do you know if this is correct? That statement is true for

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Jeremias Maerki
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

Re: SV: Rescaling images to 300dpi

2007-02-07 Thread Uwe Kubosch
On Wed, 2007-02-07 at 15:51 +0100, Jeremias Maerki wrote: 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.