AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2008.03.27 19:07 "[Tiff] TIFF vs JPEG files", by
2008.03.27 19:15 "Re: [Tiff] TIFF vs JPEG files", by Bob Friesenhahn

2008.03.27 19:15 "Re: [Tiff] TIFF vs JPEG files", by Bob Friesenhahn

On Thu, 27 Mar 2008, matt1@llnl.gov wrote:

I am developing some s/w to create grayscale images from a datafile. The code originally generated JPEG files and I am transitioning to TIFF files. My TIFF files are coming out with the grayscale spectrum reversed from the JPEG files. Obviously, I can reverse the spectrum in my code but I was wondering if there was a more elegant way to do this such as TIFF tag settings to specify which end of the spectrum is white and which is black. Any suggestions?

This is accomplished via the PHOTOMETRIC_MINISBLACK and PHOTOMETRIC_MINISWHITE photometric tags.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/