| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2000.03.13 17:07 "Re: TIFF image file size", by Bruce CameronWhen you say 'file offset' I presume you mean strip offset, or an offset the TIFF write process has to use to place header information at the end of the file. It seems to me that if the header were at the start of the file, then the size limitation is moot [except that the bytes per strip are also limited to a [signed?unsigned?] integer. Although I don't know if it is possible to ensure that the header data is at the start of the file. Frank Warmerdam wrote: > > Bruce, > > The most recent release version of libtiff (which this application may > be using) uses signed integers for file offset, and this implicitly > limits > seeks to be within the first 2GB. I presume the application has > successfully > written the image data beyond the 2GB limit (because no seeks are > required) > but when it tries to write the directory while closing the file a seek > is done > and this fail. I suspect BitsPerSample is just the first tag that it > tries > to write to the directory. > > The current CVS source contains patches to use unsigned offsets for file > positions, and allows writing and reading up to 4GB files successfully. > Because TIFF itself uses 32bit offsets in the format, it is not possible > to > go beyond 4GB without changing the format, or making some really funky > assumptions. > > Best regards, > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerda@home.com > light and sound - activate the windows | > http://members.home.com/warmerda > and watch the world go round - Rush | Geospatial Programmer for Rent |
|||||||