Message-ID: 384B6468.E7910B7A@inpho.de
To: Kambiz Asrar Haghighi <kambiz@interchange.ubc.ca>
Subject: Re: X & Y Resolution
From: Rainer Wiesenfarth <Rainer.Wiesenfarth@inpho.de>
Date: Mon, 06 Dec 1999 08:23:20 +0100
CC: TIFF Mailing List <tiff@olympiakos.com>
Organization: Inpho GmbH
References: <Pine.GSO.4.20.9912051208170.14305-100000@inch.interchange.ubc.ca>
Sender: owner-tiff@olympiakos.com


Kambiz Asrar Haghighi wrote:
> 
> Hi,
> 
> 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

> Thanks in advance,
> Kambiz

--
-- 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

