On Wed, 16 Sep 2020 01:18:00 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> If pos is big enough you could still theoretically have overflow, but this >> is still better. > > You can try to create such images using some separate tools, BTW I have found > one here(32768 × 32768): > https://forums.bohemia.net/forums/topic/202016-high-quality-maps-for-altis-and-stratis/ Hi Sergey, I tried reading images from https://forums.bohemia.net/forums/topic/202016-high-quality-maps-for-altis-and-stratis/, we are trying to create destination BufferedImage of huge size and again we will hit: Exception in thread "main" java.lang.IllegalArgumentException: Invalid scanline stride at java.desktop/java.awt.image.ComponentSampleModel.getBufferSize(ComponentSampleModel.java:268) where we check scanline with Integer.MAX_VALUE. From the description in JBS i can see that submitter has his own plugin for TIFF and that is the only reason that he is able to read such a large images. With default plugin we will hit this issue whenever we try to read large images as it is not supported. Thanks, Jay ------------- PR: https://git.openjdk.java.net/jdk/pull/182