AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1999.12.05 20:09 "X & Y Resolution", by Kambiz Asrar Haghighi
1999.12.05 23:42 "Re: X & Y Resolution", by Niles Ritter
1999.12.06 07:23 "Re: X & Y Resolution", by Rainer Wiesenfarth
1999.12.06 10:14 "Re: X & Y Resolution", by Ivo Penzar

1999.12.06 07:23 "Re: X & Y Resolution", by Rainer Wiesenfarth

I've tried to understand what Xresolution and Yresolution are from the tiff specification, but I still don't understand how I would go about deciding the values for these fields based on the number of pixels I have in my image. I know the value of the width and height, but is there any correlation between these and the above values?

Yes, simple mathematics:

        width[pixel] = width[inch]  * Xresolution[pixel/inch]

or
        width[inch] = width[pixel] / Xresolution[pixel/inch]

Note that some applications do not read or use the resolution tags, but most should.

Rainer

--
-- Besuchen Sie bitte unsere neue Homepage  http://www.inpho.de
-- Please visit our new home page           http://www.inpho.de
-- -----------------------------------------------------------------
-- Dipl.-Inform. Rainer Wiesenfarth
-- Inpho GmbH                    E-mail: Rainer.Wiesenfarth@Inpho.de
-- Smaragdweg 1                  Phone : +49 711 22881-20
-- 70174 Stuttgart               Fax   : +49 711 22881-11
-- Germany                       URL   : http://www.inpho.de