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

Quality Desc and Quality Values arrays are of same length for JPG

    Details

    • Subcomponent:
    • Introduced In Build:
      1.4
    • Introduced In Version:
    • Resolved In Build:
      b56
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The API specification for getcompressionQualityDescriptions() claims that the array length of the compression quality values returned by the ImageWriteParam must always be one greater than the array length of quality descriptions returned by the same write param for any image format. This does not work for JPG. For JPG, both the arrays returned are of same length.

      This is reproducible right from JDK1.4 on all the platforms.

      I have attached a sample code. Execute the sample code and watch the console. If the array length of quality desc and quality values are same then the bug is reproduced.
      ###@###.### 2003-12-23

      Attached the testcase.

      ###@###.### 2003-12-23

        Attachments

          Activity

            People

            • Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: