Save tile form TIFF image
I have 19843 x 12756 uncompressed untiled TIFF image. When I try to save a 256 x 256 region from that TIFF I get OutOfMemory. If I set -Xmx2048M it obviously works. Is JAI trying to load whole image into the memory just to get that 256 x 256 tile???
RenderedImage image = JAI.create("fileload", inputFile.toString());
RenderedImage tile = JAI.create("crop", params, null);
JAI.create("filestore", tile, outputFile.toString(), "png");
If I proccess tiled TIFF then everything is fine.