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
March 2011

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

2011.03.28 18:22 "TIFFReadCustomDirectory and TIFFWriteCustomDirectory", by Steve Underwood
2011.03.28 19:32 "Re: TIFFReadCustomDirectory and TIFFWriteCustomDirectory", by Andreas Kleinert
2011.03.29 00:59 "Re: TIFFReadCustomDirectory and TIFFWriteCustomDirectory", by Steve Underwood
2011.03.29 13:28 "Re: TIFFReadCustomDirectory and TIFFWriteCustomDirectory", by Andreas Kleinert

2011.03.28 19:32 "Re: TIFFReadCustomDirectory and TIFFWriteCustomDirectory", by Andreas Kleinert

Hi,

when writing a new directory, TIFFWriteCustomDirectory() puts it to
the end of the file. Furthermore, the offset return value (in &offset)
seems to be equivalent to tif->tif_nextdiroff - as the new directory
is the last one in the file, zero IMHO makes perfect sense?!

I just wonder if the API intentionally was designed this way, or
whether it's a bug. However, when just following this logic then
TIFFCurrentDirOffset() should return what you expect.

Is there any error output?

BR,
Andreas

> Hi,
> 
> I have started using TIFFReadCustomDirectory to access some special IFD 
> blocks in TIFF-FX files. That seems to be working OK, but I can't find a 
> way to do the opposite, and write similar special IFD blocks. I found 
> TIFFWriteCustomDirectory, but it doesn't seem to be documented, and 
> doesn't seem to be a corollary of TIFFReadCustomDirectory. When I try 
> calling TIFFWriteCustomDirectory(tiff_file, &offset); it always returns 
> zero for the offset, and I can't seem to find a related block of tags in 
> the resulting file, if I do a hex dump of that file. Can anyone help?
> 
> Steve