AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1998.05.13 04:44 "Reading concatenated tiff files", by Richard Beare
1998.05.13 08:33 "Re: Reading concatenated tiff files", by Bjorn Brox
1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux
1998.05.14 10:23 "Re: Reading concatenated tiff files", by Howard Kaikow
1998.05.14 11:02 "Re: Reading concatenated tiff files", by Bjorn Brox

1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux

Hi,

Storing multiple images in a TIFF file not discouraged at all, and works very well (we currently use it to store multiple resolution of the same scanned image in one file).

To acces one specific image we do the following:

     // Open tiff file in a standard way.
     tif = TIFFOpen("file","r");
     // Set the tiff directory you wan't to access
     // (res ranges from 0 to number of image minus one)
     TIFFSetDirectory(tif,(tdir_t)res);
     // Read whatever you want in current image.
     TIFFGetField(...);

Hope this helps,

Bruno,

 ----------------------------------------------------------
            Bruno LEDOUX
            PPC Multimedia, 7 rue du Gabian 98000 MONACO
            http://www.ppc.mc
            tel.: (+377) 97 98 41 60
            fax: (+377) 97 98 41 61