1999.06.17 00:07 "Controlling Rational Values", by Tom Denny

1999.06.17 00:07 "Controlling Rational Values", by Tom Denny

Does anyone know of a way to explicitly set which numerator and denominator get used when setting rational TIFF Tags?

For example, I'm setting the YRESOLUTION tag to 200 which I pass to TIFFSetField as a float. Libtiff stores the value 419430400 as the numerator and 2097152 as the denominator in the YRESOLUTION tag. This, of course, is correct; however, I was hoping I could store 200 as the numerator and 1 as the denominator.

I found a reader which incorrectly assumes the denominator is 1 and I would like to make compatible TIFF images if it's easy enough to control.

Thanks!
-Tom