1998.12.30 20:12 "writing Xresolution and Yresolution", by Sim Zacks

1998.12.30 21:50 "Re: writing Xresolution and Yresolution", by Helge Blischke

The Tiff 6.0 spec says that XResolution and Yresolution are Rationals which is 2 longs (one is divided by the other). I looked in Tiffcp, and TiffSplit and they are using floats for a Rational.

But when I try that, it doesn't seem to work. And when I look up what the tag is in other programs, it says 0. Is this a bug, or am I doing something wrong? How can I correctly set these fields?

If you use the TIFFSetField function for writing the tags, the function internally should convert these floats into rationals. Probably it is wise to set the tag ResolutionUnit first.

Helge

--
H.Blischke@srz-berlin.de
H.Blischke@srz-berlin.com
H.Blischke@acm.org