AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1997.01.08 22:25 "libtiff to write EPS preview", by Chuck Packard
1997.01.09 07:36 "Re: libtiff to write EPS preview", by Karsten Spang
1997.01.09 16:16 "Re: libtiff to write EPS preview", by Phillip Crews
1997.01.15 16:44 "Re: libtiff to write EPS preview", by Helge Blischke

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

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