2006.03.31 05:49 "[Tiff] 16-bit TIFF to 8-bit BMP/TIF ???", by Chris L.

2006.03.31 16:13 "RE: [Tiff] 16-bit TIFF to 8-bit BMP/TIF ???", by

> -----Original Message-----

As noted under the TIFFRBAImage Support section, libtiff already has basic support for 16-bit to 8-bit sample conversion already. Assuming that you have available memory to read the entire image at once, this looks like it might be the quickest way.

Yes, and this built in support does not apply the desired square root so probably all that you would get is a blown-out or all-black image. :-)

Hmm... might be cool to write a user-defineable function that gets called on each pixel to do some kind of modification. Yeah, it's expensive to make a call for each pixel, and yes, one would have to consider the different formats -- function for each? or must the function be "smart" and behave differently according to the current format? etc -- but if it could done cleanly, it would probably be pretty handy. *shrug*