| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2009.04.06 18:45 "Re: Writing tiff to in-memory buffer", by Bob FriesenhahnOn Mon, 6 Apr 2009, Christian Henning wrote: >> >> It should be useful to use contrib/stream/tiffstream.cpp from the libtiff >> source distribution as a reference. The version which will be included in >> 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/ |
|||||||