We have recently reported something similar (it might have been in
private to Jeremias...can't remember) and he fixed that problem just
this week. It was related to a color profile being truncated (or
something like that). Might be the same issue. Perhaps you can try the
trunk version of fop or post one of your images.
Hth,
Peter
On 22 Apr 2008, at 14:57, Jean-François El Fouly wrote:
I have a problem with the way PNG images are rendered.
I'm writing tools to manage aircraft technical documentations. One
of the documents is the "Pilot's Guide", it has quite a lot of
cockpit screens screenshots. The source image files are all PNG's,
and they have very bright, fully saturated colours such as bright
green (0,255,0) -- on black.
Yet these images are rendered by FOP in the target PDF with dull
colors, rather pale green, pale yellow, pale magenta -- and
obviously the customer rejects the document as it is now.
Adobe Acrobat Professional seems to tell in the properties that the
generated PDF document is CMYK, while the source images are
obviously RGB. But I'm not quite sure we understand and interpret
this correctly, so take this hint with a pinch of salt.
I've looked in quite a lot of directions such as manipulating source
images and target resolutions to prevent image resizing (source =
target = 300 dpi), or investigated JAI related questions but to no
avail. My feeling, reading pieces of the FOP 0.94 source code
(ImageFactory) is that JAI is not used at all for the processing of
PNG images, it all seems to occur between ImageIO and a PNGImage
class that use Apache xmlgraphics own codec.
Could the problem be related to the gamma correction
param.setPerformGammaCorrection(true);
that is used in PNGImage ?
By now, all in all, I'm puzzled and can't figure what's happening
and how to find a solution to this problem.
If someone has an idea I'd be soooooo grateful ;-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]