Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6430958

ColorConvertOp converts too dark with gray ICC_Profile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • 2d
    • x86
    • windows_xp

      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 ----------

            avu Alexey Ushakov
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: