2004.01.20 18:40 "[Tiff] Reading Custom Tags", by David Christopher Asher

2004.01.20 20:46 "Re: [Tiff] Reading Custom Tags", by David Christopher Asher

I think you will find you need 3.6.1. There was a grevious bug in the custom tag support in 3.6.0.

Second, the custom tags will use "generic" semantics as I recall. Basically you will need to pass the count (a u_short) and then the pointer to be initialized.

eg.

     double *xyz;
     u_short count;

     TIFFGetField( tiff, 33550, &count, &xyz );

     assert( count == 3 );
     printf( "x=%g, y=%g, z=%g\n", xyz[0], xyz[1], xyz[2] );

Thank you very much! Worked like a charm. I actually had something exactly like this at one point, but it was not working properly--I was getting the wrong values stored in xyz. 3.6.1 made the difference. Thanks again!

Dave