AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.04.08 20:56 "writing in-memory tiffs", by Christian Henning
2009.04.13 14:50 "Re: writing in-memory tiffs", by Christian Henning
2009.04.13 16:08 "Re: writing in-memory tiffs", by Jason Summers
2009.04.14 15:52 "Re: writing in-memory tiffs", by Christian Henning
2009.04.14 16:42 "Re: writing in-memory tiffs", by Bob Friesenhahn

2009.04.13 16:08 "Re: writing in-memory tiffs", by Jason Summers

Christian Henning wrote:
> 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?