AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2009.03.27 22:42 "[Tiff] TIFFOpen throws access error", by
[...]
2009.04.07 15:35 "Re: [Tiff] Writing tiff to in-memory buffer", by Bob Friesenhahn
2009.04.07 15:56 "Re: [Tiff] Writing tiff to in-memory buffer", by Christian Henning
[...]

2009.04.07 15:56 "Re: [Tiff] Writing tiff to in-memory buffer", by Christian Henning

Without thoroughly analyzing the code, (and making a WAG) I get the impression that libtiff reads back the header it just wrote to obtain the actual endianness of the data and the TIFF subformat.

Yes, it was a WAG. Obviously. FYI, the read_proc is called before the write_proc. Though, I don't think libtiff is trying to get the endianness.

FWIW, I'm fine with the current solution.

Thank you all for your insight.

Christian