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.27 12:04 "Re: [Tiff] Saving multiple images to a tiff file...", by Sanjay Gupta

Hi Frank,

Thanx for your help. Now i am able to get a valid tif file, but still not able to get multiple images in single file. Now when the program is calling TIFFWriteDirectory (), the control goes to TIFFLinkDirectory() and it fails there, giving me an error "TIFFLinkDirectory: Error Fetching directory count." Do i need to set something else also.

I have modified my file like this:-

for (k = 0; k < frameCount; k++) {
                if (k > 0){
                TIFFCreateDirectory (tiff);
                TIFFSetField (tiff, TIFFTAG_SUBFILETYPE, FILETYPE_PAGE);
        }
                ...
}

Now because of the above error, i get a file which contains only one image, as opposed to expected multiple images.

TIA for your help.

Regards,
Sanjay