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

PIT: Quality of GIF image is low for translucent image types

    XMLWordPrintable

Details

    • b14
    • generic, x86, arm
    • generic, linux, solaris_2.5.1
    • Verified

    Description

      I am reading a transparent GIF image using toolkit APIs and drawing to one of the following buffered image types
      INT_ARGB
      INT_ARGB_PRE
      4BYTE_ABGR
      4BYTE_ABGR_PRE

      When I write the above images to a file using GIF writer, the background of these images are no longer transparent and the quality of these images are low compared to RGB ones. I have attached few screenshots of the same.

      This is reproducible on all the platforms with the following PIT build:
      java version "1.6.0-2d.pit-jcg-win-03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-2d.pit-jcg-win-03-java2d_25_may_2005_00_37-b00)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b37, mixed mode)

      I have attached a sample test. Execute the sample test as follows.
      java WriterTest gif <input img>
      The input image and output image are shown on the frame. You would notice that for the above mentioned image types, image loaded on the right side are of poor quality compared to the ones on the left.
      ###@###.### 2005-05-26 17:30:55 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: