AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2017.09.16 19:50 "[Tiff] TIFF tile size limit", by Bob Friesenhahn
2017.09.16 21:31 "Re: [Tiff] TIFF tile size limit", by Kemp Watson
2017.09.16 22:41 "Re: [Tiff] TIFF tile size limit", by Roger Leigh
2017.09.16 23:56 "Re: [Tiff] TIFF tile size limit", by Bob Friesenhahn
2017.09.17 02:25 "Re: [Tiff] TIFF tile size limit", by Kemp Watson
2017.09.17 13:45 "Re: [Tiff] TIFF tile size limit", by Bob Friesenhahn
2017.09.17 11:45 "Re: [Tiff] TIFF tile size limit", by Roger Leigh
2017.09.17 15:29 "Re: [Tiff] TIFF tile size limit", by Kemp Watson
2017.09.17 16:27 "Re: [Tiff] TIFF tile size limit", by Even Rouault
2017.09.17 17:00 "Re: [Tiff] TIFF tile size limit", by Roger Leigh

2017.09.17 02:25 "Re: [Tiff] TIFF tile size limit", by Kemp Watson

Is that a problem? With memory virtualized to disk, this becomes a storage size problem, which is out of libtiff¹s hands. Big apps will always need big systems.

W. Kemp Watson

kemp@objectivepathology.com

Objective Pathology Services Limited

8250 Lawson Road
Milton, Ontario
Canada L9T 5C6

www.objectivepathology.com
tel. +1 (416) 970-7284

On 2017-09-16, 7:56 PM, "Bob Friesenhahn" <tiff-bounces@lists.maptools.org on behalf of bfriesen@simple.dallas.tx.us> wrote:

On 16/09/2017 19:50, Bob Friesenhahn wrote:

Does anyone have an opinion on the maximum tile size which should be allowed by a general purpose TIFF reader?

For example is 4096x4096 large enough to handle any practical TIFFs?

I'd venture to say any size up to and including the full image size.

Technically larger, since the tile size can be larger than the image size. There is nothing to prevent a one pixel image from claiming a huge tile size.

(CL_DEVICE_IMAGE2D_MAX_HEIGHT/WIDTH). So I think it's fair to say that a practical TIFF reader should be capable of at least 8k x 8k for today's basic needs, and likely significantly more to be future proof.

256 MB per tile seems like quite a lot of memory to require from a client.

Regardless, the problem I am seeing here is that the client uses TIFFScanlineSize(), TIFFStripSize(), TIFFTileSize(), or TIFFGetField(tiff,TIFFTAG_IMAGEWIDTH,&width) to determine the amount of memory to allocate. These can return huge sizes and it is difficult for client software to know what sizes are valid.