AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

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

2004.07.26 19:33 "Re: [Tiff] 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.