2004.03.15 23:58 "[Tiff] libtiff and streams", by Dimitar Gospodinov

2004.03.16 00:14 "Re: [Tiff] libtiff and streams", by Bob Friesenhahn

How difficult would be to modify libtiff to support streams-like operations? Having random access files is not always possible - for example when reading from sockets, the file size is unknown.

One of the things that should change, if streams are to be supported, is get file size functions. They can not be used.

Do you think this is an easy change? For example using new switch for "stream i/o"?

Support for non-seekable streams would certainly be very desirable from the API user's perspective. In GraphicsMagick we currently must create a temporary file if the input is from a non-seekable stream. Doing so is painful.

Unfortunately, libtiff supports random I/O of tiles and strips so it seems very difficult to support streams unless a temporary file is automatically created under the covers.

Bob

======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen