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

Animated GIFs created from opaque PNG image frames appear transparent when loaded with Toolkit APIs

XMLWordPrintable

    • 2d
    • b147
    • generic
    • generic

      I am creating an Animated GIF image from a set of opaque PNG frames using GIF Writer. When loading the created gif image using Toolkit.getImage(), the image looks transparent when it is not supposed to be. Same gif image loaded in a native image viewer works perfectly. Hence java GIF decoder fails to load this image properly.

      This is reproducible since Mustang-b53 on all platforms. On b52, the output image looks black because of a different bug. This works fine when using other image frames such as JPG, BMP etc.

      I have attached a sample test. Execute the sample test as follows:
      java WriterTest PNG
      You would see set of images being loaded on to the frame and you would see 2 animated GIF images at the end. If the moving ball looks transparent (you would see the background color), the bug is reproduced.

            jdv Jayathirth D V
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: