Red Hat Bugzilla – Bug 426142
javax.imageio.ImageIO.read() fails for some PNGs
Last modified: 2008-01-03 13:01:03 EST
Description of problem:
Some PNGs which earlier versions of the JDK (e.g. 1.6.0_03) could load now
cause a RasterFormatException to be thrown.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build the attached program.
2. Run 'java Test test.png'
A RasterFormatException is thrown.
The program should load the image and exit normally.
This worked in JDKs from the 1.5 and 1.6 series. I've attached a minimal test
program and an image which exhibit the problem.
Created attachment 289924 [details]
Created attachment 289926 [details]
an image which exhibits the problem
Note that it's only some PNGs which seem to trigger the problem. All of the
ones which fail this way ImageMagick's 'identify' says are 'PseudoClass 8c
I have verified that this is a bug in IcedTea and not OpenJDK
This has been fixed in the repository.
It will be in rawhide when the next version of IcedTea is released.
Should be available in rawhide within the next couple of days.