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 filter the image doesn't
> > get down-sampled.
> 
> Thanks!  I am working on getting this to work.  I think I have solved
> the Xalan/Serializer endorsed jar setup, but now I get the an error:
> 
> SEVERE: svg graphic could not be built: Can't find bundle for base name
> org.apache.fop.svg.resources.Messages, locale en_US

<snip/>
> 
> Any idea how to fix this?  I am planning to chheck out and build the
> current trunk in case this has been fixed.

See Andreas' answer.

> > 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.
> 
> I do know the display-size in millimeters of the image, but not the size
> in pixels.  Do I need to know this?  Could you explain why I need to
> know this and where in your example I have to set the image size?

The size in millimeters is fine. Just set the image size on the svg
element. The image inside will automatically be scaled to fit the
boundaries.

> > 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.
> 
> Yes, maybe I'll fall back on this, but it would be nice to let FOP do it
> since FOP already has all the information regarding display-size and any
> changes to displayed image size would trigger a duplicate change in the
> FOP generation and the preprocess-script.

Of course, it would be nice to have that in FOP. But it's not a 30
minute job to implement it. After we do the image package redesign this
should become a much easier task.

> Hmm, maybe I can use the FOP file as input to the image preprocess
> script...that just might work!


Jeremias Maerki


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

Reply via email to