2005.03.16 10:33 "[Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Andrey Kiselev

2005.03.17 01:41 "[Tiff] I/O support for FILE *", by Jeff Breidenbach

Sorry if this has been raised before, but would it be better to have TIFFFILEOpen( FILE*, char* ) instead?

Yes, it would. Portability gets even easier if applications don't need to call fileno (which is part of POSIX.1 but not ANSI C89). There just happens to be longstanding libtiff support for TIFFFdOpen, so I suspect it may be the path of least resistance.

which makes generalising code that needs to support eg. tiff and jpeg a bit more pleasant.

Yes, exactly.

is there any reason not to provide it by default here?

Beats me. It sure would make life simpler for me.


Jeff Breidenbach <jbreiden@parc.com>
Palo Alto Research Center (PARC)