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

GIF Writer writes RGB image in gray scale when def img metadata is specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • None
    • 6
    • client-libs

    Description

      I am creating a RGB buffered image and writing it to a file using GIF Writer. When writing the image, I am getting the default image metadata from the writer by passing the ImageTypeSpecifier of the RGB image and passing it to the write method. When I read back the image from the file, the image appears in GRAYSCALE even though the image written is a RGB image. This is incorrect.

      This is reproducible on all platforms on Mustang-b40. This is not reproducible for any other writer such as JPG, PNG, BMP.

      I have attached a sample test. Execute the sample test as follows:
      java GIFWriterMetadataTest gif <image file>
      If a frame is shown with a gray scale version of the given image, the bug is reproduced.
      ###@###.### 2005-06-16 11:19:56 GMT

      Attachments

        Issue Links

          Activity

            People

              bae Andrew Brygin
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: