2009.03.27 22:42 "[Tiff] TIFFOpen throws access error", by

2009.04.06 18:45 "Re: [Tiff] Writing tiff to in-memory buffer", by Bob Friesenhahn

It should be useful to use contrib/stream/tiffstream.cpp from the libtiff source distribution as a reference. which will be included in  The version

libtiff4 is updated to standard C++.

Seems I need to recompile libtiff and start debugging. Does the code work on your machine?

I don't know if your code would work on my machine and I have also never actually tested contrib/stream/tiffstream.cpp.

I am now also reminded that there is a libtiff/tif_stream.cxx which is included in libtiff's C++ library. I have spent some time updating this source file for libtiff4 (but without actually testing it).

As far as the viability of TIFFClientOpen() goes, GraphicsMagick has been using it for many years without any problems.

The error message you are seeing suggests that libtiff requests to read back from the file it is writing and perhaps your wrapper functions do not adequately support this.

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