jai-imageio / jai-imageio-jpeg2000

JPEG2000 support for Java Advanced Imaging Image I/O Tools API
Other
74 stars 56 forks source link

Dimensions (width=1000000 height=1000000) are too large #27

Open THausherr opened 6 years ago

THausherr commented 6 years ago

ImageIO.read() with the attached file brings this exception:

Exception in thread "main" java.lang.IllegalArgumentException: Dimensions (width=1000000 height=1000000) are too large at java.awt.image.SampleModel.(SampleModel.java:130) at java.awt.image.ComponentSampleModel.(ComponentSampleModel.java:146) at java.awt.image.PixelInterleavedSampleModel.(PixelInterleavedSampleModel.java:87) at com.github.jaiimageio.jpeg2000.impl.J2KReadState.getSampleModel(J2KReadState.java:899) at com.github.jaiimageio.jpeg2000.impl.J2KReadState.readBufferedImage(J2KReadState.java:344) at com.github.jaiimageio.jpeg2000.impl.J2KImageReader.read(J2KImageReader.java:441) at javax.imageio.ImageIO.read(ImageIO.java:1448) at javax.imageio.ImageIO.read(ImageIO.java:1308)

xxx.zip

Spoiler: the file is not 1000000 x 1000000.