TIFF reader exception: width*height > Integer.MAX_VALUE, bug or feature?
java.lang.IllegalArgumentException: width*height > Integer.MAX_VALUE!
when I try to read a 80000x40000 TIFF image with an ImageReader returned
ImageWriter writer = ImageIO.getImageWritersByFormatName("tiff").next();
ImageReader reader = ImageIO.getImageReader(writer);
Is this a bug or feature?
Will this be changed to support larger files in the future?
The codec returned by:
ImageDecoder sourceDecoder = ImageCodec.createImageDecoder("tiff", sourceStream, null);
Is able to read these large images, but seems to be much slower.
Yes, the image I'm experimenting with is tiled and JPEG compressed and less than 500 MB (