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
June 2006

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

2006.06.07 11:39 "Editing a tiff image using libtiff", by Sachin Garg
2006.06.07 12:51 "Re: Editing a tiff image using libtiff", by Joris Van Damme
2006.06.12 13:59 "Re: Editing a tiff image using libtiff", by Sachin Garg
2006.06.12 15:09 "Re: Editing a tiff image using libtiff", by Joris Van Damme
2006.06.13 07:29 "Re: Editing a tiff image using libtiff", by Rob Van Den Tillaart
2006.06.13 08:32 "Re: Editing a tiff image using libtiff", by Gerben Vos
2006.06.13 08:55 "Re: Editing a tiff image using libtiff", by Rob Van Den Tillaart
2006.06.13 16:04 "Re: Editing a tiff image using libtiff", by Joris Van Damme
2006.06.13 16:02 "Re: Editing a tiff image using libtiff", by Joris Van Damme
2006.06.14 09:08 "Re: Editing a tiff image using libtiff", by Gerben Vos

2006.06.13 08:55 "Re: Editing a tiff image using libtiff", by Rob Van Den Tillaart

> > An additional way to handle space is the introduction of an 
> > 'alloc-tag'.
> > This tag indicates the size of the 'allocated' block in the file in 
> > contrast to the size tag which indicates the count of the 
> > bytes used.
> 
> There are already the FreeByteOffsets and FreeByteCounts (288 
> and 289) tags for keeping track of unused space. Nothing is 
> specified about in which IFD they belong, though (the first? 
> the last? wherever you want, and use all of them together?). 
> The spec also says: "not recommended for general 
> interchange", probably partly because of this, and also 
> because it's not very nice to give someone a space-wasting 
> file, I guess :-).

I agree, if a file can be rewritten with zero space-waste it is
preferred. The original discussion  triggered me to think about how to
prevent unnecessary growth by only appending new information at the end
of the TIFF file.

In my thought experiment every tile/strip has its own 'alloc-tag' so it
should be clear where it belongs to. This 'alloc-tag' is written when
the the tile is written first time and its content does not change,
unless new space is allocated at the end of the file. Free space is
calculated when needed, this in contrast to the FreeBytesOffsets/Counts
model in which the list of free space should be kept up to date. 

Thanx for your comment,
Regards
Rob