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.
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).
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/