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

Animated GIF image is blank/gray scale when created from a set of PNG/JPG image frames

XMLWordPrintable

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

      I am creating an animated GIF image from a set of PNG images using GIF Writer. I am getting the image metadata of each image frame and converting it to GIFImageMetadata by calling convertImageMetadata(). I am also setting few other properties related to animation such as transparentColorFlag, delayTime, applicationID etc. When I read the animated image using Toolkit APIs and render it on the screen, the image is completely black. The same code works fine if the individual image frames are GIF images.

      When I do the same with a set of JPG image frames, I am getting the animated image in gray scale, though the individual frames are RGB frames.

      This is reproducible on all platforms with Mustang builds. I have attached the sample test and the sample image frames that I used. Run the application as follows:

      'java WriterTest <dir Name>'. ex: java WriterTest Tiger or java WriterTest Tiger_PNG
      For PNG, you will see a blank image at the right most end of the frame.
      ###@###.### 2005-07-21 11:32:47 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: