1997.01.08 22:25 "libtiff to write EPS preview", by Chuck Packard

1997.01.09 16:16 "Re: libtiff to write EPS preview", by Phillip Crews

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