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

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

XMLWordPrintable

    • 1.4
    • b56
    • generic
    • generic
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: