-
2009.03.27 23:57 "Re: [Tiff] TIFFOpen throws access error", by Bob Friesenhahn
- 2009.03.30 18:26 "Re: [Tiff] TIFFOpen throws access error", by
-
2009.04.07 13:44 "Re: [Tiff] Writing tiff to in-memory buffer", by Christian Henning
- 2009.04.06 15:35 "[Tiff] Writing tiff to in-memory buffer", by Christian Henning
- 2009.04.07 14:13 "Re: [Tiff] Writing tiff to in-memory buffer", by Edward Lam
- 2009.04.07 15:35 "Re: [Tiff] Writing tiff to in-memory buffer", by Bob Friesenhahn
- 2009.04.08 20:56 "[Tiff] writing in-memory tiffs", by Christian Henning
- 2009.03.28 01:03 "Re: [Tiff] TIFFOpen throws access error", by Toby Thain
2009.04.13 16:08 "Re: [Tiff] writing in-memory tiffs", by Jason Summers
Hi there,
last Wednesday I posted a problem when writing in-memory images, but so far, no one replied. Can someone please tell me if the sample program I posted is suppose to work?
I don't believe your sample program will work, because you didn't implement seek_proc or read_proc or size_proc.
seek_proc is required. Libtiff doesn't necessarily write the bytes in order.
You might get away with having read_proc always fail, provided you never write multi-image TIFFs, but I wouldn't rely on that. Unlike other libraries, libtiff cannot write to write-only files. And make sure that your read_proc fails if there is nothing to read. If it returns bytes that were not written, bad things will happen.
I don't know if size_proc is ever called when writing TIFFs, but why chance it?