Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.1/8.12.1/Debian -1) with ESMTP id fBIMSYrF004419
	for <dron@localhost>; Wed, 19 Dec 2001 01:33:40 +0300
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.9.0)
	for dron@localhost (single-drop); Wed, 19 Dec 2001 01:33:40 +0300 (MSK)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Mon Dec 17 17:26:17 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id TAA22862;
	Mon, 17 Dec 2001 19:52:25 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 17 Dec 2001 19:51:55 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id TAA22845
	for tiff-outgoing; Mon, 17 Dec 2001 19:51:54 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from smtp1.screen.co.jp (gw0.screen.co.jp [210.199.158.194])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id TAA22842
	for <tiff@olympiakos.com>; Mon, 17 Dec 2001 19:51:37 -0500
Received: from system.screen.co.jp (localhost [127.0.0.1])
	by smtp1.screen.co.jp (8.9.3+3.2W/3.7W) with ESMTP id KAA06088;
	Tue, 18 Dec 2001 10:00:09 +0900 (JST)
Received: from [133.224.51.44] (rip-044 [133.224.51.44])
	by system.screen.co.jp (8.9.3/3.7W-12/20/99) with ESMTP id JAA06959;
	Tue, 18 Dec 2001 09:51:21 +0900 (JST)
Mime-Version: 1.0
X-Sender: tmatsuda@systemgw
X-Mailer: Macintosh Eudora Version 5.0.1r-J
Message-Id: <v05010000b8444204b7f0@[133.224.51.44]>
In-Reply-To: <B84399E7.1AA9%j.may@speed-print.co.uk>
References: <B84399E7.1AA9%j.may@speed-print.co.uk>
Date: Tue, 18 Dec 2001 09:52:48 +0900
To: Juergen May <j.may@speed-print.co.uk>, <tiff@olympiakos.com>
From: Takao Matsuda <tmatsuda@screen.co.jp>
Subject: Re: Newbie need help! Please!
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1316
Lines: 51

Hello Juergen.

First of all, it would be easier to understand if you write figures
in Hex format, I think.  ie. 00 FF 2D EC ...

At 12:47 +0100 01.12.17, Juergen May wrote:
>Hi!
>
>I'm a newbie and have a problem understanding the TIFF data structure.
>
>I need to get the resolution of a bi-level TIFF image but can't seem to get
>the value. I know the resolution is 300 so I'm expecting to find contiguous
>bytes with the values 1 and 44 (decimal).
>
>Now, if I'm right, the value bytes in the tag 282 (x resolution) act as a
>pointer. In my instance, the values are as follows -
>
>1    26    - Tag 282
>0    5     - Rational type
>0    0    0    1   - Count
>0    0    0    182  - ???
>
>I don't understand what 182 means!? Is this an offset from the start of the
>file?

Yes.

>If so, the value from 182 are -
>
>0    45    198    192
>0    0    39    16
>0    45    198    192
>0    0    39    16

They are
00 2D C6 C0
00 00 27 10
2DC6C0 (3000000) is a denominator and
2710 (10000) is a molecule

2DC6C0 (300000) / 2710 (10000) = 12C (300)

And the second combination of 00 2D C6 C0 and 00 00 27 10 are
for Y resolution, I guess.

Does this help?

Takao

To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

