2004.07.26 12:23 "[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


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.