JDK-6430958 : ColorConvertOp converts too dark with gray ICC_Profile
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-05-26
  • Updated: 2012-01-16
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
If I use a gray ICC_Profile(ISOnewspaper26v4_gr.icc or ICONSnewspaper26v5_gr.icc which can be downloaded from the Ifra organization www.ifra.com), the ColorConvert operation will convert an image into a much too dark one. When the same image is converted in Photoshop CS2 (version 9) with the same ICC_Profile, it will be translated into a more normal image.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see source code below.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect an image which is comparable with the one processed in Photoshop.
ACTUAL -
A much too dark image

ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error messages.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
            File iccfile = new File("ISOnewspaper26v4_gr.icc");
           ICC_Profile profile=ICC_Profile.getInstance(iccfile.getAbsolutePath());
            ICC_Profile[] profiles = { profile };
            ColorConvertOp colconvert = new ColorConvertOp(profiles, null);
            imgbuf = colconvert.filter(imgbuf,null);

---------- END SOURCE ----------