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

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?