Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.1
-
Fix Version/s: 4.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
-
Workaround Description:This is related
PDF-276. Using JDK 1.5 will address the issue.
Description
The portrait images are showing incorrectly in a number of PDFs. The images are tinted in blue.
I think I might have finally found the smoking gun. I haven't had much luck reproducing there error but after a very close examination of my environments I noticed that I was running ICEpdf with image scaling turned off which is not the default. When I enabled it I started seeing what "crazy" Tyler was seeing...
So the colour work I did for correctly mapping cyyk->cmyk->rgb seems to be valid as is the JDK 1.5 bgra vs rgba in JDK 1.6 and higher. Image scaling intend is to save a little memory and speed up the decode process. Scaling is achieved by using a AffineTransformOp using an interpolation of AffineTransformOp.TYPE_BILINEAR which seems to be changing the colour model or the raster data, not sure which. When I switch the interpolation to AffineTransformOp.TYPE_NEAREST_NEIGHBOR everythign to work out nicely.