Received: by smtp02.oce.nl (4.1/SMI-4.1)
	id AA18375; Thu, 1 Oct 98 16:41:09 +0200
Received: from deliverator.sgi.com (deliverator.sgi.com [204.94.214.10])
	by oce.nl (8.9.0/8.9.0) with ESMTP id QAA03204
	for <rvdt@oce.nl>; Thu, 1 Oct 1998 16:16:00 +0200 (MET DST)
Received: from odin.corp.sgi.com (fddi-odin.corp.sgi.com [198.29.75.194]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id HAA00726; Thu, 1 Oct 1998 07:12:51 -0700 (PDT)
	mail_from (owner-tiff@fddi-sgi.sgi.com)
Received: from sgi.sgi.com by odin.corp.sgi.com via ESMTP (951211.SGI.8.6.12.PATCH1502/951211.SGI)
	 id HAA14018; Thu, 1 Oct 1998 07:14:28 -0700
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id HAA04400; Thu, 1 Oct 1998 07:00:51 -0700 (PDT)
	mail_from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost)
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	id GAA03189
	for tiff-list;
	Thu, 1 Oct 1998 06:30:45 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37])
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	via ESMTP id GAA10666
	for <tiff-relay@cthulhu.engr.sgi.com>;
	Thu, 1 Oct 1998 06:30:43 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from server.warp10.com (warp10.warp10.com [209.47.238.194]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via SMTP id GAA00820
	for <tiff@sgi.com>; Thu, 1 Oct 1998 06:30:41 -0700 (PDT)
	mail_from (gene@mail.warp10.com)
Message-Id: <199810011330.GAA00820@sgi.sgi.com>
Received: from [209.47.238.202] [209.47.238.202] by server.warp10.com
  (SMTPD32-4.04) id A54673C0154; Thu, 01 Oct 1998 09:36:06 EDT
Subject: TIFF Question about Writing out Photoshop Resources.
Date: Thu, 1 Oct 98 09:33:29 -0400
X-Sender: gene@mail.warp10.com
X-Mailer: Claris Emailer 2.0, March 15, 1997
From: "Giancarlo D'Ulisse" <gene@warp10.com>
To: "tiff@sgi.com" <tiff@sgi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk

Hello,

we are using Version 3.4beta037 of the TIFF Library and I have modified 
it to read Adobe Photoshop resource information:

#define TIFFTAG_PHOTOSHOPRES				34377

When reading this information TIFFGetField() we do the following:

if (TIFFGetField(tif, TIFFTAG_PHOTOSHOPRES, &resourceLength,
          &resourceOffset) && resourceLength) {

     // allocate some space here for the read.

     TIFFSeekFile(tif, (toff_t) resourceOffset, SEEK_SET);
     if (!ReadOK(tif, resourcePtr, resourceLength)) {
          ....

Everything works fine.  The problem I am encountering is how to modify 
the code to write the same information out.  I tried to find a similar 
case in the library but was unable to.  Do I get the current position of 
the file and then write the data and then write the tag?  Is order 
important with respect to other TAG information (ie.  should I only do 
this last or is it ok to wriite this stuff out at any time)?

Thank you very much for your time.
Sincerely
Giancarlo D'Ulisse


---
Giancarlo D'Ulisse
Sr. Progammer/Analyst                     Voice:  (905) 763-9277 Ext. 224
Warp 10 Technologies Inc.                 Fax:    (905) 763-1360
9120 Leslie Street, Suite 101             E-Mail: gene@warp10.com
Richmond Hill, Ontario                    WWW:    www.warp10.com
Canada                                      
L4B 3J9

