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
July 2004

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

2004.07.26 12:23 "Saving multiple images to a tiff file...", by Sanjay Gupta
2004.07.26 13:30 "Re: Saving multiple images to a tiff file...", by Joris Van Damme
2004.07.26 19:33 "Re: Saving multiple images to a tiff file...", by Frank Warmerdam
2004.07.27 12:04 "Re: Saving multiple images to a tiff file...", by Sanjay Gupta
2004.07.29 16:29 "Re: Saving multiple images to a tiff file...", by Andrey Kiselev
2004.07.30 12:41 "Re: Saving multiple images to a tiff file...", by Sanjay Gupta

2004.07.26 19:33 "Re: Saving multiple images to a tiff file...", by Frank Warmerdam

Sanjay,
  
Reviewing some of my multi-page implementations, it appears you should
be calling TIFFCreateDirectory() for each new directory you want to
create with the exception of the first (it is implicitly created when the
file is created).
  
for (k = 0; k < frameCount; k++) {
      if( k > 0 )
           TIFFCreateDirectory( tiff );
      data = image->frameDimensionList [j].frames [k];
      ...
      TIFFWriteDirectory (tiff);
}
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com 
light and sound - activate the windows | http://pobox.com/~warmerdam 
and watch the world go round - Rush    | Geospatial Programmer for Rent

Editor's note: This mail was not originally archived, and has been reconstructed from quotes.