Received: from sgi.sgi.com (192.48.153.1) by cerious.com
 with SMTP (Apple Internet Mail Server 1.1.1); Thu, 9 Jan 1997 13:35:55 -0500
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id KAA28505; Thu, 9 Jan 1997 10:31:27 -0800
Received: (from daemon@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id QAA01389 for tiff-list; Thu, 9 Jan 1997 16:01:25 GMT
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id IAA01384 for <tiff-relay@relay.engr.sgi.com>; Thu, 9 Jan 1997 08:01:24 -0800
Received: from cerious.com (cerious.catalogue.com [198.85.68.66]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id IAA23966 for <tiff@sgi.com>; Thu, 9 Jan 1997 08:01:21 -0800
Received: from phome.cerious.com (38.240.128.17) by cerious.com
 with SMTP (Apple Internet Mail Server 1.1.1); Thu, 9 Jan 1997 11:02:01 -0500
Message-Id: <2.2.32.19970109161630.006b457c@mail.cerious.com>
X-Sender: pcrews@mail.cerious.com
X-Mailer: Windows Eudora Pro Version 2.2 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 09 Jan 1997 11:16:30 -0500
To: Chuck Packard <chuck@mathworks.com>, tiff@sgi.com
From: Phillip Crews <pcrews@cerious.com>
Subject: Re: libtiff to write EPS preview
Sender: owner-tiff@relay.engr.SGI.COM
Precedence: bulk

At 17:25 1/8/97 -0500, Chuck Packard wrote:
>How can one find out how many bytes were written out for a TIFF image?
>If I use no compression, then it is just width * height * 3 + H, were H
>is some amount of TIFF header (tag) information. Anyone know what H is?
>
>What if I do use packbits compression; how long is the file then? I
>guess what would be great is some function I can call after TIFFClose
>that tells me how many bytes were written out. When I looked at the code
>for PackBitsEncodeI do not see any magical global keeping track of how
>many bytes are being written out with each encoded strip. So I do not
>see an easy modification to get at this information. Anyone ever look
>into this? Anyone else need this?

How about:
 (file size after writing TIFF) - (file size before adding TIFF)

If the file is closed and re-opened, you could use O/S calls to retrieve the
file size (i.e., _stat); if the file is open, you can use _seek on the fd.

Phillip
--
Kind regards,
Phillip

** Please contact support@cerious.com for product support.
**
** Please join the ThumbsPlus mailing list! Just mail a message
** with the contents "join thumbs" to listserver@thumbsplus.com

 /// Cerious Software, Inc.  Try ThumbsPlus, the BEST for Windows
//   http://www.cerious.com  Version 3.0e1-S - current shareware
//   ftp://ftp.cerious.com     released 12/2/96
 ///

