2014.05.08 23:14 "[Tiff] what's up with all the seeking?", by Jeff Breidenbach

2014.05.10 14:06 "Re: [Tiff] what's up with all the seeking?", by Bob Friesenhahn

On Fri, 9 May 2014, Toby Thain wrote:

On 09/05/14 10:03 AM, Bob Friesenhahn wrote:

Is TIFF fundamentally incompatible with streaming?

In order for TIFF to be "streamed" you would need to implement an I/O layer for libtiff to use and the I/O layer would need to add any necessary buffering so that it buffers all data up to any requested seek or read offset. It might be necessary to buffer the entire image data.

A simple workaround is to read the input into a temporary file.

Or mmap()?

Mmap() does not help for input via a pipe or socket. It can be used to map the temporary file (which libtiff does by default).

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/