Tiling / Displaying Large JPEG Image
I am working with a jpeg map image (11338px * 7558px * 24 bytes per px).
Uncompressed, the image has a disk space of 32mb; compressed 10mb.
Ultimately, I want to display a smaller portion of the map selected by the
grid reference supplied by the user. However, every time I try and load the
image using JAI my JVM freezes. I have specified java arguments of -Xmx1024m
with the same result.
I am new to the JAI api, and have tried to create a tiled image / tile cache
without success. I have also tried using the examples provided in the jai
examples / demos. I have the same map images as tiffs, but I get the same
problem. Does anyone have any suggestions / pointers as to how I can work
around this problem?