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

GIF Writer fails to encode TYPE_4BYTE_ABGR bimg with LGP/RGP configured with transparent colors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • client-libs

      I have a TYPE_4BYTE_ABGR buffered image with a rectangle filled with LinearGradientPaint and RadialGradientPaint configured with transparent colors from different color space. I am trying to save this image using GIF ImageWriter and loading the saved image using ImageIO. The output gif image looks blank and no exception is thrown. The image is blank when viewed through ImageIO as well as native viewers.

      This is reproducible since 1.6 on all platforms.

      I have attached a sample test. Execute the sample test. A frame will be loaded with the source buffered image. Another frame (smaller in size) will show the output image created by the GIF writer. If the output image is empty, the bug is reproduced. I have also attached the output image to this bug report.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: