Bug #4279
closed
FOP give image error on some systems (linux, windows so far)
Added by ben leinfelder over 15 years ago.
Updated over 15 years ago.
Description
When adding image (png) output from the R actor, we were getting odd image IO errors from the Apache-FOP classes. It's not every image and not on all platforms. Before going to Kruger, we saw it on my Ubuntu machine, Jing's linux (I believe Ubuntu), and then on Judith's Windows XP machine (that was the surprise!)
It does not seem to happen in OS X at this point.
Preliminary testing:
-recreated the error on my Ubuntu machine.
-upgraded the Apache Commons IO jar to 1.4 (from 1.3)
-error is not happening for the same test case.
Turns out the JAI image reader for PNGs was the culprit. There's a Sun image reader that is also registered, but the order was under-specified so sometimes we'd get the good one and other times the bad one.
I've set the ordering to use the preferred image reader service first:
1) com.sun.imageio.plugins.png.PNGImageReader
2) com.sun.media.imageioimpl.plugins.png.CLibPNGImageReader
Original Bugzilla ID was 4279
Also available in: Atom
PDF