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.9.3/8.9.3) with ESMTP id MAA07873
	for <dron@localhost>; Sat, 17 Mar 2001 12:59:43 +0300
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.6.0)
	for dron@localhost (single-drop); Sat, 17 Mar 2001 12:59:43 +0300 (MSK)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Wed Mar  7 12:42:51 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id PAA23648;
	Wed, 7 Mar 2001 15:21:50 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 7 Mar 2001 15:13:52 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id PAA23429
	for tiff-outgoing; Wed, 7 Mar 2001 15:13:52 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from hebco.com (www.hebco.com [208.233.70.2])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id PAA23426
	for <tiff@olympiakos.com>; Wed, 7 Mar 2001 15:13:45 -0500
Received: from SMTP [208.233.70.2] by hebco.com
  (SMTPD32-6.06) id A5E9CB57013C; Wed, 07 Mar 2001 14:11:21 -0600
Received: from laptop3 ([208.233.70.100]) by 208.233.70.2
  (Norton AntiVirus for Internet Email Gateways 1.0) ;
  Wed, 07 Mar 2001 20:11:21 0000 (GMT)
Reply-To: <fdroke@hebco.com>
From: "A. Farrel Droke" <fdroke@hebco.com>
To: "TIFF help \(E-mail\)" <tiff@olympiakos.com>
Subject: Problems with Photoshop TIFFs
Date: Wed, 7 Mar 2001 14:12:10 -0600
Message-ID: <000d01c0a742$e4e50bb0$6446e9d0@laptop3>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000E_01C0A710.9A4A9BB0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 5693
Lines: 155

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C0A710.9A4A9BB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

A few years ago, I wrote an OmniMark program that would find TIFF files
linked to SGML documents and insert the attributes for reprowid and reprodep
(width and depth) in inches.  Recently, I have found that Photoshop (and a
few other newer programs) build TIFFs in a new way that I cannot figure out.
Hopefully, one of you can point me in the right direction.

My examples below are for Intel bit order ("II").

In the old TIFFs, I looked for the ImageWidth and ImageLength tags which
would look like:

1A 01 05 00 01 00 00 00 F2 00 00 00
1B 01 05 00 01 00 00 00 FA 00 00 00

where the F2 and the FA were hex offsets to the data.  I would then go down
to F2 and find:

2C 01

flip-flop that to 012C hex and, voila!, it's 300 pixels per unit!

The new files at location F2 have something like:

C0 C6 2D 00 10 27 00 00

How do I get 300 pixels per unit out of that?  Is this another offset or
what?

Any help would be deeply appreciated!
Thanks,

Farrel

************************************************
A. Farrel Droke, PE
Corporate Director - Engineering
HEBCO, INC.
1601 S.E. 66th Street
Oklahoma City, OK  73149
(405)672-1461 X223
(405)672-3184 FAX
mailto:fdroke@hebco.com
http://www.hebco.com
***********************************************



------=_NextPart_000_000E_01C0A710.9A4A9BB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>A few =
years ago, I=20
wrote an OmniMark program that would find TIFF files linked to SGML =
documents=20
and insert the attributes for reprowid and reprodep (width and depth) in =

inches.&nbsp; Recently, I have found that Photoshop (and a few other =
newer=20
programs) build TIFFs in a new way that I cannot figure out.&nbsp; =
Hopefully,=20
one of you can point me in the right direction.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>My =
examples below=20
are for Intel bit order ("II").</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>In =
the&nbsp;old=20
TIFFs, I looked for the ImageWidth and ImageLength tags which would look =

like:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>1A 01 =
05 00 01 00 00=20
00 F2 00 00 00 <BR>1B 01 05 00 01 00 00 00 FA 00 00 =
00</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>where =
the F2 and the=20
FA were hex offsets to the data.&nbsp; I would then go down to F2 and=20
find:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>2C=20
01</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D677141617-07032001>flip-flop that to=20
012C hex and, voila!, it's 300 pixels per unit!</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>The =
new files=20
at&nbsp;location F2 have&nbsp;something like:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>C0 C6 =
2D 00 10 27 00=20
00</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>How do =
I get 300=20
pixels per unit out of that?&nbsp; Is this another offset or=20
what?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D677141617-07032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D677141617-07032001>Any =
help would be=20
deeply appreciated!</SPAN></FONT></DIV>
<P><FONT face=3DArial size=3D2>Thanks,</FONT></P>
<P><FONT face=3DArial size=3D2>Farrel</FONT></P>
<P><FONT face=3DArial=20
size=3D2>************************************************</FONT> =
<BR><FONT=20
face=3DArial size=3D2>A. Farrel Droke, PE</FONT> <BR><FONT face=3DArial=20
size=3D2>Corporate Director - Engineering</FONT> <BR><FONT face=3DArial=20
size=3D2>HEBCO, INC.</FONT> <BR><FONT face=3DArial size=3D2>1601 S.E. =
66th=20
Street</FONT> <BR><FONT face=3DArial size=3D2>Oklahoma City, OK&nbsp; =
73149</FONT>=20
<BR><FONT face=3DArial size=3D2>(405)672-1461 X223</FONT> <BR><FONT =
face=3DArial=20
size=3D2>(405)672-3184 FAX</FONT> <BR><FONT face=3DArial size=3D2><A=20
href=3D"mailto:fdroke@hebco.com">mailto:fdroke@hebco.com</A></FONT> =
<BR><FONT=20
face=3DArial size=3D2><A=20
href=3D"http://www.hebco.com/">http://www.hebco.com</A></FONT> <BR><FONT =

face=3DArial =
size=3D2>***********************************************</FONT> </P>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C0A710.9A4A9BB0--

